2
MathQuill似乎特别难在我们的项目包括,当我们严格遵循了他们的网站上的说明,我们把:MathQuil API纳入
<link rel="stylesheet" href="file:///mathquill-0.10.1/mathquill.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="file:///mathquill-0.10.1/mathquill.js"></script>
Our directory layout (the file the above code is in is landing.ejs
) 它不工作。 The console errors when running the program。我们认为这很可能是ejs的问题,虽然我们不确定这一点,任何帮助将不胜感激。
尝试'' – Viney
不知道还有什么其他评论,但它不起作用。它在控制台中表示它无法为.js和.css文件加载资源:net :: ERR_CONNECTION_REFUSED。 –
嗯.. .try'
这有什么好做EJS或MathQuill,控制台中的错误消息指出:
是您的页面能够通过
file:///
包括任何其他的JS和CSS文件?如果不是,则需要使用本地HTTP服务器,例如python -m SimpleHTTPServer
。 (您可能还需要使用相对URL来引用MathQuill的文件,相对于页。)(我MathQuill的维护者。)
来源
2017-01-03 23:54:22