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.
精彩评论