已知哪些JavaScript库使用全局美元符号:window。$? [英] What JavaScript libraries are known to use the global dollar sign: window.$?
本文介绍了已知哪些JavaScript库使用全局美元符号:window。$?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
哪些JavaScript库接管全局范围内的 $
变量?
如果库提供不同的全局命名空间上的名称,或者提供放弃窗口的方法。$
,你可以链接到他们文档中的正确函数,可能是它的一些代码示例吗? / p>
拥有这样的列表可以非常快速地调试彼此之间的潜在冲突。
解决方案
扫描此页面,唯一想到的是:
- jQuery - 提供
jQuery.noConflict()
释放$
- 原型
- MooTools
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 in 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
这篇关于已知哪些JavaScript库使用全局美元符号:window。$?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文