2016-02-29 169 views

回答

0

在cordova中,不需要安装mathJax。以下面的方式包含mathJax修复问题/错误。

<script type="text/x-mathjax-config"> 
    MathJax.Hub.Config({ 
    // add your configuration, see following for example 
    showProcessingMessages: false, 
    tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} 
    }); 
</script> 
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> 

包括文件为 “//cdn.mathjax.org/...” 或 “https://cdn.mathjax.org/ ...” 将不包括mathJax文件。

+0

未来的注意事项:cdn.mathjax.org即将结束生命周期,请查看mathjax.org/cdn-shutting-down获取迁移提示。 –