我尝试使用 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
,但它在我下载的 mathjax 最新版本中不起作用
http://localhost/math/js/math/MathJax.js?config=TeX-AMS-MML_HTMLorMML ?
如何配置,它显示公式而不是红色“[数学处理错误]”?谢谢!