如何解决jquery冲突因为添加了两个不同的文件 [英] how to solve the jquery conflict because of adding the two diiferent files
问题描述
我的项目我的脚本文件名为\ js\jquery-1.7.1.min.js JS / jQuery的1.8.0.min.js, JS1 / jquery的-UI-1.8.23.custom.min.js, \js \ _jquery.toolbar.min.js喜欢这个我想在一个网页中包含所有脚本文件但是当我包含所有脚本时,js \ _jquery.toolbar.min.js这个脚本没有运行如何我能解决这个问题,通过在同一页面上运行来运行所有这些脚本。我可以更改这些文件的名称是jquery的新手,所以请建议我如何解决这个问题
Hi,
Im My project i had the script file name as "\js\jquery-1.7.1.min.js","js/jquery-1.8.0.min.js","js1/jquery-ui-1.8.23.custom.min.js","\js\jquery.toolbar.min.js" like this i want to include all the script files in one web page but when i include all the scripts the "js\jquery.toolbar.min.js" this script is not running how can i solve this to run all this script by including on same page..can i change the name of these files am new to jquery so please suggest me how can i solve this
推荐答案
\ js\jquery-1.7.1.min.js,
js / jquery-1.8.0.min.js
为什么要加载两个jquerys?
只使用一个,正确的需要。
检查脚本文件的顺序,jquery文件使用firebug加载元素。
检查firebug错误等。
\js\jquery-1.7.1.min.js",
"js/jquery-1.8.0.min.js
Why you are loading two jquerys?
Use only one,the right one needed.
Check the order of script files, jquery document loading of elements using firebug.
Check firebug errors etc.
这篇关于如何解决jquery冲突因为添加了两个不同的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!