在用chrome或firefox调试前台时,常会遇到
$ is not a function when calling jQuery function.
这是因为jQuery中的方法时,一般使用jQuery而不使用$,因为$可能会与其它库不兼容。
解决方法:
(function($){
// jQuery code is in here
})(jQuery);
最后欢迎大家访问我的个人网站:1024s
在用chrome或firefox调试前台时,常会遇到
$ is not a function when calling jQuery function.
这是因为jQuery中的方法时,一般使用jQuery而不使用$,因为$可能会与其它库不兼容。
解决方法:
(function($){
// jQuery code is in here
})(jQuery);
最后欢迎大家访问我的个人网站:1024s