Javascript “错误”;未捕获的SyntaxError:意外标识符“;
我的代码有点小问题,我肯定这没什么,但我找不到 有人能帮我吗 我明白了:Javascript “错误”;未捕获的SyntaxError:意外标识符“;,javascript,jquery,Javascript,Jquery,我的代码有点小问题,我肯定这没什么,但我找不到 有人能帮我吗 我明白了: 未捕获的语法错误:意外标识符 提前感谢。代码缺少两个右括号来结束函数调用 $(document).ready(function(){ $('#zone1').mouseover(function(){ $('#cercle2-1').fadeIn(200); }); //Need right paren and semi to finish statement $('
未捕获的语法错误:意外标识符
提前感谢。代码缺少两个右括号来结束函数调用
$(document).ready(function(){
$('#zone1').mouseover(function(){
$('#cercle2-1').fadeIn(200);
}); //Need right paren and semi to finish statement
$('#zone1').mouseout(function(){
$('#cercle2-1').fadeOut(200);
}); //Need right paren and semi to finish statement
});
非常感谢。我真是个白痴:)@Clemeent很高兴我能帮上忙。别担心,这会发生在每个人身上,诀窍就是坚持下去。并不是所有的事情都在第一次尝试时发生。@KevinBowersox也许你也可以向OP展示他可以使用选择器两次链接方法,而不是og。所以你说
$(select).mouseover(function(){}).mouseout(function(){})代码>??
$(document).ready(function(){
$('#zone1').mouseover(function(){
$('#cercle2-1').fadeIn(200);
}); //Need right paren and semi to finish statement
$('#zone1').mouseout(function(){
$('#cercle2-1').fadeOut(200);
}); //Need right paren and semi to finish statement
});