Invalid or unexpected token on a very simple function

后端 未结 1 789

what is wrong here:

$(\'#evclose\').click(function(){
    console.log(\'323\');
});​ // line 103

console:

Uncaug

相关标签:
1条回答
  • 2021-01-14 12:01

    Just a non-ascii-character \xe2 at the end of your function braces.

    Open developer tool > console and paste your code. You will see a red dot over there which indicates an invalid character.

    Just remove that invalid character (check image below).

    0 讨论(0)
提交回复
热议问题