草庐IT

stopLoading

全部标签

android - stopLoading() 到底做了什么?

是的,我知道stopLoading()的文档说“停止当前负载。”但是当我尝试使用它在加载新页面之前停止加载当前正在进行的页面时,它似乎没有表现asdesired:07-2412:53:30.177:V/WebView.loadUrl:http://www.google.com07-2412:53:30.227:V/WebViewClient.onPageStarted:http://www.google.com===>WebView.stopLoading()calledhere如您在日志中所见,第一个loadUrl()的WebViewClient.onPageFinished()被调