search

Home  >  Q&A  >  body text

ios - webview加载h5页面底部出现网页端没有的广告怎么解决?

大家讲道理大家讲道理2892 days ago332

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-18 09:32:40

    Use https protocol;

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:32:40

    For example, filtering operator advertisements: webView.setWebViewClient(new WebViewClient() {

            public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
                if (url.contains("adpro.cn")) {//若url含广告url
                    return new WebResourceResponse(null, null, null);
                }
                return null;
            }

    reply
    0
  • 迷茫

    迷茫2017-04-18 09:32:40

    Operator hijacking, use https

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:32:40

    reply
    0
  • Cancelreply