我正在Google App Engine上创建一个网站,并且遇到Mathjax无法在Chrome上运行的问题。
在本地计算机上测试网站时没有问题,但在我发布到GAE之后,Mathjax只停止为Chrome工作。
我将Mathjax CDN链接和配置放在body标签的底部,看起来像
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js" type="text/javascript">
MathJax.Hub.Config({
extensions: ["tex2jax.js","TeX/AmsMath.js","TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML""></script>
<script src="/static/js/jquery.js"></script>
<script src="/static/js/childsplayexp.js"></script>
</body>
我试过将它移到不同的地方但没有任何改变。我现在不知道。
很抱歉没有提供信息,但我不知道自己发生了什么事,请随时发表猜测,这对我来说确实很有价值。
答案 0 :(得分:3)
您的信息页有两个问题。
cdn.mathjax.org
不支持https,但您可以使用同等稳定的https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js 更新此内容changed in 2014。 SSL现在可以在cdn.mathjax.org上运行,并且机架地址已经停用。
更新(2017年)。 cdn.mathjax.org
的副本将停用。查看mathjax.org/cdn-shutting-down了解迁移提示。
text/x-mathjax-config
。再次,请参阅the documentation了解更多详情。