开发者

Is there any case in which removing a BOM from a Js file created in Visual Studio 2008 will cause problems?

开发者 https://www.devze.com 2023-03-13 21:33 出处:网络
I need to automate tests of our javascript files using Rhino and Jasmine. We have a lot of js files created in visual studio, and thus contain a byte order mark...

I need to automate tests of our javascript files using Rhino and Jasmine. We have a lot of js files created in visual studio, and thus contain a byte order mark...

Rhino doesn't like this and moans about the BOM...

Is there any 开发者_StackOverflow社区case, no matter how fringe, that will cause the javascript to malfunction if I just strip out the BOM from the Javascript files?


Some browsers may dislike the BOM too. It is better to leave it out anyway and specify proper encoding when using/sending the file.

0

精彩评论

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