2014-06-06 44 views
0

在PyCharm,當我把jQuery的1.10.2.js進入主目錄,並做PyCharm的JavaScript導入

<script type="text/javascript" src="jquery-1.10.2.js"></script> 

我得到的錯誤 「GET /jquery-1.10.2.js HTTP/1.1」 404 -

什麼是最佳解決方案?

回答

0

將文件放入一個叫做 '靜態' 的文件夾,

<script type="text/javascript" src="static/jquery-1.10.2.js"></script>