js file as utf-8, the browser encoded as utf-8, or garbled

I js file no problem, but it is garbled on the Internet to find a lot on the browser, only to find coding js file should be replaced utf-8 including BOM, the Kengren it.
How does that set?
1, with Notepad js file
2, select another saved '
UTF-. 8. 3, select' comprises the BOM
Here Insert Picture Description
4, overwrite the original file

Published 11 original articles · won praise 2 · Views 331

Guess you like

Origin blog.csdn.net/zds18205657013/article/details/104534679