建议使用webview.getSettings()方法的设置属性 就比如:// 设置WebView属性,能够执行Javascript脚本 webview.getSettings().setJavaScriptEnabled(true); public void setUseWebViewBackgroundForOverscrollBackground (boolean view) Set whether the WebView uses its background for over scroll background. If true, it will use the WebView's background. If false, it will use an internal pattern. Default is true.
就比如:// 设置WebView属性,能够执行Javascript脚本
webview.getSettings().setJavaScriptEnabled(true);
public void setUseWebViewBackgroundForOverscrollBackground (boolean view)
Set whether the WebView uses its background for over scroll background. If true, it will use the WebView's background. If false, it will use an internal pattern. Default is true.