2021
04-07
04-07
Android WebView如何判定网页加载的错误
一前言在WebView加载网页的过程中,有时会页面加载不出来的情况,如下:那么如何知道网页加载错误了呢?二解决方法webview.webViewClient=object:WebViewClient(){overridefunonPageFinished(view:WebView?,url:String?){super.onPageFinished(view,url)Log.d(TAG,"onPageFinished:")}overridefunonReceivedError(view:WebView?,request:WebResourceRequest?,error...
继续阅读 >