search

Home  >  Q&A  >  body text

There is a bug in webView goBack implementation

  1. We need to use the canGoBack method of webView, but we found that weex does not provide the export of this method

  2. Then I found that the source code of weex sent fireEvent to the js side in the - (void)webViewDidFinishLoad:(UIWebView *)webView; method

  3. However, when ajax refreshes the page asynchronously, the - (void)webViewDidFinishLoad:(UIWebView *)webView; method on the Native side will not be triggered, so our js side still uses the previous canGoBack value

曾经蜡笔没有小新曾经蜡笔没有小新2844 days ago647

reply all(0)I'll reply

No reply
  • Cancelreply