Joomla的Jquery冲突

时间:2013-05-30 18:02:23

标签: jquery

我正在使用Joomla模板,我遇到与Jquery冲突的问题。当我在我的网站上放置HTML代码时,使用wigitkit的幻灯片显示为空白。我复制了收到的错误代码。任何人都可以提出任何可以治愈冲突的建议。我安装了jquery easy插件,但它不起作用。

以下是错误消息

Multiple jQuery Libraries found. Please make sure these don't conflict each other.
/components/com_community/assets/imgareaselect/scripts/jquery.imgareaselect.js
/components/com_community/assets/imgareaselect/scripts/jquery.imgareaselect.min.js
/components/com_community/assets/imgareaselect/scripts/jquery.imgareaselect.pack.js
/components/com_community/assets/joms.jquery.js
/components/com_community/assets/joms.jquery.mobile-1.4.2.js
/components/com_community/assets/joms.jquery.mobile-1.4.2.pack.js
/components/com_community/assets/joms.jquery.pack.js
/components/com_community/assets/jquery-1.3.2.pack.js
/components/com_community/assets/jquery-ui-tabs.min.js
/components/com_community/assets/jquery.tablednd_0_5.js
/components/com_community/assets/jquery.tablednd_0_5.pack.js
/components/com_community/assets/multiupload_js/jquery.plupload.queue/jquery.plupload.queue.js
/components/com_community/assets/multiupload_js/jquery.ui.plupload/jquery.ui.plupload.js
/components/com_community/assets/tipsy-0.1.7/src/javascripts/jquery.tipsy.js
/components/com_jce/editor/libraries/js/jquery/jquery-1.7.1.min.js
/components/com_jce/editor/libraries/js/jquery/jquery-ui-1.8.17.custom.min.js
/components/com_jce/editor/libraries/js/jquery/jquery-ui-layout.js
/media/mod_vt_nivo_slider/js/jquery/1.7.1/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery/1.7.2/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery/1.8.0/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery/1.9.0/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery/1.9.1/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery/latest/jquery.min.js
/media/mod_vt_nivo_slider/js/jquery.nivo.slider.js
/media/mod_vt_nivo_slider/js/jquery.nivo.slider.min.js
/plugins/system/jqueryeasy/jquerynoconflict.js

1 个答案:

答案 0 :(得分:0)

只使用jQuery的一个版本(可能是最新版本)。并在包含其他插件文件之前将其包含在顶部。 例如,在head部分的html页面顶部使用它:

    <script src="http://code.jquery.com/jquery-latest.min.js"
    type="text/javascript"></script>`