开发者

Chrome omitting words from my alert box

开发者 https://www.devze.com 2023-04-03 14:25 出处:网络
I have the following code on a webpage being served by a coldfusion 9 server. alert(\"Doing this now may result in los开发者_Python百科s of data\")

I have the following code on a webpage being served by a coldfusion 9 server.

alert("Doing this now may result in los开发者_Python百科s of data")

and when I trigger the alert box this is what I see.

Doing this now may...

I have never even heard of the or seen anything like this, google didn't produce anything of promise either.


I thought I was the only one with this issue. Yes, I had this exact issue six months ago and for the life of me -- two months -- I couldn't figure it out. Eventually, I found a jQuery / JavaScript error that resulted in this issue.

I'm pretty sure the issue had to do with ending JavaScript lines with the appropriate semi-colon EVERYWHERE. Chrome seems to halfway choke on non-perfect JavaScript.

I suggest poring over your JavaScript code and cleaning it up. Maybe removing it from the page and then introducing it back in slowly, testing along the way. This may be a problem if you use plugins though.

0

精彩评论

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

关注公众号