开发者

$ is not a function although jQuery is loaded

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜