📜  location.href webview android studio - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:30.534000             🧑  作者: Mango

代码示例1
//Override the WebView shouldOverrideUrlLoading, like this:

myWebView.setWebViewClient(new WebViewClient() {
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
    });