设置webView属性
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
webView.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
//super记得注释或者删掉
handler.proceed();
}
});