开发者

$ is not a function although jQuery is loaded

开发者 https://www.devze.com 2023-03-05 18:15 出处:网络
Firebug says \"$ is not a开发者_运维百科 function\" although jQuery is loaded (twice!) on this site:

Firebug says "$ is not a开发者_运维百科 function" although jQuery is loaded (twice!) on this site:

http://www.magiskecirkel.no/

Can anybody tell me why? :-)

Thanks!


jQuery is set to no conflict mode on that page: $wpbr = jQuery.noConflict();, so it's not bound to the $ function but to $wpbr.


You're using wordpress, which I believe includes the prototype library. Prototype overwrites the '$' function provided by jquery: http://elementdesignllc.com/2009/08/wordpress-jquery-is-not-a-function/

you might want to check out noconflict mode: http://api.jquery.com/jQuery.noConflict/


There's a bit which lets jQuery use the name jQuery instead of $, and perhaps you've got that turned on.

0

精彩评论

暂无评论...
验证码 换一张
取 消