原生安卓 App中嵌套 H5, H5不能使用缓存报一下提示:
Cannot read property 'getItem' of null
通过webView 设置开启缓存
WebSettings settings = newWebView.getSettings();
settings.setDomStorageEnabled(true);//开启缓存
原生安卓 App中嵌套 H5, H5不能使用缓存报一下提示:
Cannot read property 'getItem' of null
通过webView 设置开启缓存
WebSettings settings = newWebView.getSettings();
settings.setDomStorageEnabled(true);//开启缓存