0

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 case, no matter how fringe, that will cause the javascript to malfunction if I just strip out the BOM from the Javascript files?

4

1 に答える 1

1

一部のブラウザは、BOM も気に入らない場合があります。いずれにせよ省略して、ファイルを使用/送信するときに適切なエンコーディングを指定することをお勧めします。

于 2011-06-16T13:50:39.827 に答える