0
我嘗試使用mathjax:安裝MathJax並顯示公式
<!DOCTYPE html>
<html>
<head>
<title>Math</title>
<link rel="stylesheet" type="text/css" href="http://localhost/math/css/style.css" />
<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>
<!--
<script type="text/javascript" src="http://localhost/math/js/math/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-->
</head>
<body>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>
它的工作原理,如果我加載mathjax從
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
,但它dowsn't我下載mathjax最後一個版本
工作http://localhost/math/js/math/MathJax.js?config=TeX-AMS-MML_HTMLorMML ?
如何配置,它顯示公式而不是紅色「[數學處理錯誤]」?謝謝!