歡迎您光臨本站 註冊首頁

· Uncaught ReferenceError雜誌閱讀

Uncaught ReferenceError: $ is not defined? 的解決方法

admin @ 2019-05-19 reply:0
明明之前好用的代碼突然報了這個錯誤,找了半天發現竟然是導入jquery.min.js 的順序的問題


Just to be sure this is clear: you cannot put the script reference to jquery-ui before the jquery script itself. That's what fixed the problem to me: first jquery-x.x.x.min.js, then jquery-ui-xxxxxx.js.


把jquery.min.js放到前面就行了。

[admin via ] Uncaught ReferenceError: $ is not defined? 的解決方法已經有3838次圍觀

http://coctec.com/magazine/show-post-item-2.html