开发者

Chrome omitting words from my alert box

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜