Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到的错误是 $ 未在我尝试 jquery 多个版本的警报框中定义
我更改了 jquery1.9.1 文件版本,但我经常遇到同样的错误
我更改了浏览器,除了在 $ 之后在 mozilla 中运行没有错误的 mozilla,不解析并且也抛出错误。
我看到你正在使用插件。试试这个:
(function($){ [put your code here] })(jQuery);
这应该$作为别名传递给jQuery该函数,因此$将在该函数的范围内定义。
$
jQuery