调试webView内嵌网页

android 上 对webView添加 下面的代码, 就可以在chrome调试了,chrome上开 chrome://inspect/#devices
if (Constant.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    WebView.setWebContentsDebuggingEnabled(true);
}
 另一种调试方式就是通过vconsle, https://github.com/WechatFE/vConsole
 

猜你喜欢

转载自jcao54.iteye.com/blog/2400298