1、可通过allowWindowOpenMethod设置是否禁止打开新窗口,详见:allowWindowOpenMethod。2、获取url,可在webview里面每次加载都要通过onLoadIntercept,url和请求相关信息都是通过这两个拦截onInterceptRequest、onLoadIntercept。参考文档:onInterceptRequest。
1、可通过allowWindowOpenMethod设置是否禁止打开新窗口,详见:allowWindowOpenMethod。
2、获取url,可在webview里面每次加载都要通过onLoadIntercept,url和请求相关信息都是通过这两个拦截onInterceptRequest、onLoadIntercept。
参考文档:onInterceptRequest。