When making a plugin on chrome, write popup.js when you find that $ is not available, I thought it would be good to have jquery-mini-2.0.js on the Manfest.json, not really, but still need to configure Jquery-mini-2.0.js path <script src= on the HTML that calls him popup.html Js/jquery-2.1.1.min.js "></script>
Reference article http://www.xuebuyuan.com/1195507.html
jquery Error: Uncaught referenceerror: $ is not definedJuly 23, 2013 ⁄ general ⁄ a total of 196 characters ⁄ font size small medium big ⁄ comments off
When using jquery, we found the following error:
Uncaught Referenceerror: $ is not defined (anonymous function)
The reason for this error:
The path to the 1.jQuery library file is incorrect, and checking the file path is correct in general to resolve the error.
2. If the path to the library file is correct, then it is possible to load the jquery library file in HTML in the wrong order, which can be resolved if the jquery library file is loaded at the very beginning.
jquery Error: Uncaught referenceerror: $ is not defined