jQuery reference error - Stack Overflow
欧阳克
欧阳克 2017-07-05 10:40:02
0
2
818

I want to import the jquery package, but the browser reports an error. What is the reason?
**Uncaught ReferenceError: $ is not defined

at a.js:1

(anonymous) @ a.js:1**

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all (2)
三叔

a.js depends on jquery. You need to introduce jquery first and then a.js. Take a look at the page to see if it is in this order.
Additional explanationI tried it on chrome and it worked.

    曾经蜡笔没有小新

    $ is not defined, which means it has not been introduced successfully. Pay attention to the js reference order, jQuery should be placed first

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!