开发者

Chrome: Uncaught Syntax Error : Unexpected token

开发者 https://www.devze.com 2023-04-02 14:27 出处:网络
Page here Seems like chrome is the only browser having problems with this bit of javascript.I have found that if I remove the \'//\' from the CDATA tags chrome will give me a line number for the erro

Page here

Seems like chrome is the only browser having problems with this bit of 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. The code works as expected but it just takes a bit longer to load/parse with chrome.

I开发者_运维技巧 have tried to use script as an external file (float.js) but the error is the same. In production the code will need to be included in the html body though. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消