MathJax效果不佳

时间:2013-12-06 14:20:32

标签: android mathjax

我正在尝试让MathJax在我的Android应用中运行。

MyWebView.loadDataWithBaseURL("http//","<html><script type=\"text/x-mathjax-config\"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script> <script type=\"text/javascript\" src=\"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"> </script><body><b>a)</b> " + myText.replaceAll("%", "&#37;")+"</body></html>", "text/html", "UTF-8", "");

它不起作用,myText保持不变,并且没有出现数学公式。知道它会是什么?我使用它的方式有什么不对吗?

Obs。:控制台中出现以下消息,可能与MathJax无关:

[INFO:CONSOLE(29)]“Unchaught SecurityError:试图突破用户代理的安全策略。”,来源:https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML(29)

0 个答案:

没有答案