我使用jQuery的網站尾滑塊2.0上的所有網頁能正常工作像http://www.virtualmob.co.uk/solutions.html科達滑塊衝突的
但是當我的畫廊頁面上添加一個畫廊http://www.virtualmob.co.uk/gallery.html
它web.js &給予衝突我在瀏覽器中下面提到的錯誤:
Uncaught TypeError: Cannot call method 'removeClass' of null
on line number jquery.coda-slider-2.0.js:9
我試圖$ .noConflict();就像我下面提到的頂部,
$.noConflict();
$(function(){
// Remove the coda-slider-no-js class from the body
$("body").removeClass("coda-slider-no-js");
// Preloader
$(".coda-slider").children('.panel').hide().end().prepend('<p class="loading">Loading...<br /><img src="images/ajax-loader.gif" alt="loading..." /></p>');
});`
但仍不能工作&顯示了我下面的錯誤
Uncaught TypeError: Property '$' of object [object Window] is not a function
我也嘗試添加這對web.js但也沒有幫助我
請指導如何刪除衝突可以刪除?
非常感謝:)它的工作:)乾杯.. – user202196