LogCat报错如下:"XMLHttpRequest cannot load file:///sdcard/xxx/index.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.", source: file:///xxx/index.html
解决办法:
WebView添加
MyWebView.getSettings().setAllowFileAccessFromFileURLs(true);