TShopping
標題:
jQuery報錯:Uncaught ReferenceError: $ is not defined
[打印本頁]
作者:
woff
時間:
2019-7-1 22:42
標題:
jQuery報錯:Uncaught ReferenceError: $ is not defined
jQuery報錯:Uncaught ReferenceError: $ is not defined
出現這個報錯的原因:
1.jQuery庫文件的路徑不對,檢查文件路徑是否正確一般就能解決該錯誤。
2.如果庫文件的路徑是正確的,那麼可能在html中加載jQuery庫文件順序有誤,如果將jQuery庫文件加載放到最開始位置,即可以解決該錯誤
3.檢查傳值錯誤,或者某些值不存在。
歡迎光臨 TShopping (http://www.tshopping.com.tw/)
Powered by Discuz! X3.2