开发者

What JavaScript libraries are known to use the global dollar sign: window.$?

Which JavaScript libraries take over the $ variable in the global scope?

If the library provides a different name on the global namespace, or provides a method to relinquish window.$, could you link to the proper function 开发者_如何学JAVAin their documentation any maybe a little code example of its use?

Having such a list could be useful in debugging potential conflicts with each other very quickly.


Scanning this page, the only ones that come to mind are:

  • jQuery - Provides jQuery.noConflict() to release the $
  • Prototype
  • MooTools


Also zepto: http://zeptojs.com/

zepto actually matches most of the jQuery API.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜