1.MainApplication onCreate方法中,設(shè)置WebView.setWebContentsDebuggingEnabled(true);

image.png
2.瀏覽器中輸入:chrome://inspect/#devices

image.png
3.webview中打開(kāi)需要調(diào)試的頁(yè)面,在chrome中找到該頁(yè)面inspect進(jìn)入調(diào)試,如果一直顯示404,請(qǐng)翻墻后再試!

image.png