2
Q
冲突文件
A
回答
1
从技术文档:http://api.jquery.com/jQuery.noConflict/
<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$.noConflict();
// Code that uses other library's $ can follow here.
</script>
和/或你可以在这里使用别名:
<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$.noConflict();
jQuery(document).ready(function($) {
// Code that uses jQuery's $ can follow here.
});
// Code that uses other library's $ can follow here.
</script>
+0
不确定这是问题,因为他试图使用的库不会覆盖$或jQuery。 – GillesC 2012-04-16 06:17:46
相关问题
- 1. 冲突文件
- 2. 合并冲突:从冲突文件
- 3. 冲突jar文件
- 4. jQuery.min.js文件冲突
- 5. jquery文件冲突?
- 6. 共享git文件冲突
- 7. git rebase和文件冲突
- 8. RewriteRule与文件夹冲突
- 9. 冲突的CLASS文件
- 10. CMake冲突的头文件
- 11. 两个javascript文件冲突
- 12. 文件之间的冲突
- 13. 导入文件名冲突
- 14. 多个JavaScript文件冲突
- 15. 文件*访问冲突
- 16. 混帐冲突的文件
- 17. Python:文件对象冲突
- 18. jquery文件选择冲突
- 19. JQuery文件版本冲突
- 20. CustomPouchError 409冲突文档更新冲突
- 21. 冲突部件
- 22. 解决SmartGit中的冲突 - 查找冲突的文件
- 23. TFS总是提示解决冲突的文件没有冲突!
- 24. jquery插件冲突
- 25. Maven插件冲突
- 26. 与案件冲突
- 27. PyGame雪碧冲突冲突
- 28. 覆盖文件夹功能和冲突?
- 29. 蝙蝠文件参数冲突?
- 30. SVN树冲突 - 只想获取文件?
有你有把显示的任何代码或控制台了呢?很难说出它可能是什么。 – GillesC 2012-04-16 06:17:57