2016-02-29 40 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獲取遷移提示。 –