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. 冲突jar文件
- 2. RewriteRule与文件夹冲突
- 3. 文件之间的冲突
- 4. CMake冲突的头文件
- 5. 文件*访问冲突
- 6. 冲突的CLASS文件
- 7. jquery文件选择冲突
- 8. git rebase和文件冲突
- 9. JQuery文件版本冲突
- 10. 共享git文件冲突
- 11. CustomPouchError 409冲突文档更新冲突
- 12. Maven插件冲突
- 13. 与案件冲突
- 14. 在类文件中命名冲突
- 15. 文件写入冲突:file_get_contents()&fputs()
- 16. 与2个JavaScript文件冲突
- 17. 蝙蝠文件参数冲突?
- 18. 多个.htaccess文件互相冲突
- 19. IOS项目中的JSON文件冲突
- 20. SVN树冲突 - 只想获取文件?
- 21. 规则冲突的索引文件
- 22. PhpStorm文件类型关联冲突
- 23. 合并时的TortoiseSVN“树冲突”文件
- 24. Git pull只覆盖冲突文件
- 25. çLIB文件相关性冲突
- 26. 两个javascript文件的冲突
- 27. 避免冲突,如果复制文件
- 28. 二进制文件冲突 - git
- 29. git合并与.class文件的冲突
- 30. SVN标记整个文件为冲突
有你有把显示的任何代码或控制台了呢?很难说出它可能是什么。 – GillesC 2012-04-16 06:17:57