简体   繁体   English

Chrome:语法错误:令牌意外

[英]Chrome: Uncaught Syntax Error : Unexpected token

Page here 页面在这里

Seems like chrome is the only browser having problems with this bit of javascript. 似乎chrome是唯一有这种javascript问题的浏览器。 I have found that if I remove the '//' from the CDATA tags chrome will give me a line number for the error - line 48. I dont even know where start with this bug unfortunately. 我发现,如果我从CDATA标记中删除“ //”,chrome将为我提供该错误的行号-第48行。不幸的是,我什至不知道从哪里开始该错误。 The code works as expected but it just takes a bit longer to load/parse with chrome. 该代码可以按预期工作,但是使用chrome加载/解析只需要一点时间。

I have tried to use script as an external file (float.js) but the error is the same. 我尝试将脚本用作外部文件(float.js),但错误相同。 In production the code will need to be included in the html body though. 在生产中,代码将需要包含在html主体中。 Any suggestions? 有什么建议么?

Edit: It was an extension causing this error, is there any way to code against this? 编辑:这是导致此错误的扩展名,有没有办法对此进行编码?

it was the 'Smooth Gestures' extension. 这是“平滑手势”扩展。 removing fixed 去除固定

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM