错误“未捕获的SyntaxError:意外的标识符”

时间:2013-01-15 10:01:29

标签: javascript jquery

我的代码中没有什么问题,我确定它没什么,但我找不到它。

有人可以帮帮我吗?

我明白了:

  

Uncaught SyntaxError: Unexpected identifier

$(document).ready(function(){
    $('#zone1').mouseover(function(){
        $('#cercle2-1').fadeIn(200);
    }
    $('#zone1').mouseout(function(){
        $('#cercle2-1').fadeOut(200);
    }
});

提前谢谢。

1 个答案:

答案 0 :(得分:1)

代码缺少两个右括号来关闭函数调用。

  $(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
  });
相关问题