搜索

首页  >  问答  >  正文

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

大家讲道理大家讲道理2896 天前335

全部回复(4)我来回复

  • 黄舟

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

    使用https协议;

    回复
    0
  • PHP中文网

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

    如过滤运营商的广告: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;
            }

    回复
    0
  • 迷茫

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

    运营商劫持,用https

    回复
    0
  • PHP中文网

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

    回复
    0
  • 取消回复