SyntaxError:非法字符

我对此代码的最后一行有疑问。 在firebug / console我看到了

SyntaxError: illegal character after });

当我查看firebug / script时,我看到});a 。 我不知道如何删除它。

   $(function() { $('#filput').checkFileType({ allowedExtensions: ['jpg', 'jpeg'], success: function() { alert('Success'); }, error: function() { alert('Error'); } }); });​ 

标记之前确实有一个不可打印的字符。 幸运的是,jsFiddle显示了它: http : //jsfiddle.net/byg7b/ 。

在此处输入图像描述


如何删除它?

在编辑器中打开文件,在之前移动光标并按退格/删除直到删除; 。 然后添加; 再次。

删除行中的“:

 });`` 

关闭checkFileType函数后,删除两个滴答checkFileType

 $(function() { $('#filput').checkFileType({ allowedExtensions: ['jpg', 'jpeg'], success: function() { alert('Success'); }, error: function() { alert('Error'); } });`` // <-- Here });​