点击我的subject site
我在我网站的视频页面上收到这些错误。他们阻止我的视频加载和更改彼此。我对javascript的经验很少,所以我很感激任何帮助。
jquery.coda-slider-2.0.js:12TypeError: ‘undefined’ is not a function (evaluating ‘$’)
menu.js:12TypeError: ‘undefined’ is not a function (evaluating ‘$(document)’)
videos:365TypeError: ‘undefined’ is not a function (evaluating ’$(function(){
// Accordion
$(“.accordion”).accordion({
header: “.AccordionHeader”,
autoHeight: false
});
})‘)
videos:379TypeError: ’undefined’ is not a function (evaluating ’$(function() {
$( “.tabs” ).tabs();
})‘)
videos:393TypeError: ’undefined’ is not a function (evaluating ’$(function() {
$( “.dialog” ).dialog();
})’)
答案 0 :(得分:1)
问题是您使用的是$.noConflict(),但jquery.coda-slider
库并非设计用于非冲突环境。
此外,在页面本身中,有多个地方使用$
而不将jQuery传递给它。
解决方案1:如果没有理由使用noConflict()
将其删除
解决方案2:更新代码和库以在非冲突环境中使用jQuery
答案 1 :(得分:0)
你只需要在你的插件jquery.coda-slider-2.0.js之前包含你的Jquery库
尝试删除此行或在加载所有插件try{jQuery.noConflict();}catch(e){};