我可以使用以下代码在单个webview中快速加载mathjax:
String htmlText1= "<html><body style=\"text-align:justify\"> %s </body></Html>";
String myData1 ="<script type='text/x-mathjax-config'>"
+"MathJax.Hub.Config({ "
+"showMathMenu: false, "
+"jax: ['input/TeX','output/HTML-CSS'], "
+"extensions: ['tex2jax.js'], "
+"TeX: { extensions: ['AMSmath.js','AMSsymbols.js',"
+"'noErrors.js','noUndefined.js'] } "
+"});</script>"+"\n"
+
"<script type=\"text/x-mathjax-config\">\n" +
"\n" +
"MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\\\(','\\\\)']]}});\n" +
"\n" +
"</script>\n"
+
"<script type=\"text/x-mathjax-config\"> " +
"\n" +
"MathJax.Hub.Config({messageStyle: 'none',tex2jax: {preview: 'none'}});\n" +
"\n" +
"</script>\n" +
"<script type='text/javascript' "
+"src='file:///android_asset/MathJax/MathJax.js'"
+"></script><span id='math'></span>"+queData1;
itemHolder.option1WV2.loadDataWithBaseURL("http://bar",String.format(htmlText1,myData1) ,"text/html","utf-8","");
但是当我在一个活动中加载许多webview时(有时app崩溃),它变得非常慢。我必须在单个活动中加载许多webview。是否有更快的方法可以在单个活动中加载许多webview。