开发者

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

开发者 https://www.devze.com 2023-02-03 08:06 出处:网络
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

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

精彩评论

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