我正在尝试使用 Mathquill 进行一些简单的静态格式化。当我测试我的代码时,文本没有被格式化,也没有任何错误让我知道我是否做错了什么。
<html>
<head>
<style>
<link rel="stylesheet" href="dist/mathquill/mathquill.css"/>
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="dist/mathquill/mathquill.js"></script>
<script>
var MQ = MathQuill.getInterface(2);
var problemSpan = document.getElementById('problem');
MQ.StaticMath(problemSpan);
</script>
</head>
<body>
<p>Solve <span id="problem">ax^2 + bx + c = 0</span>.</p>
</body>
</html>
所有路径都是正确的,因为没有 404 错误。