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