webView = (WebView)findViewById(R.id.webView);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccessFromFileURLs(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
webSettings.setJavaScriptEnabled(true);
webView.setWebChromeClient(new WebChromeClient());
webView.loadData(html, mime, encoding);
虽然我正在提供网址 我得到" XMLHttpRequest无法加载。交叉源请求仅支持协议方案:http,data,https。",source:data:text / html,