Read the JS file in the web page, and the Chinese display is normal (for example, alert will output the Chinese information of JS file). But when the browser looks at the source code of JS file, it will see that the Chinese in the code is all garbled
。 Although it does not affect the program running, it will be affected when reading the JS file code. How to break this? The editor used is sublime text. Do you need to create a new JS or save a JS file?
How to do it
Download by yourself who uses who knows
Prettyprint is quite easy to use!