The encoding used for web pages is utf-8, and the encoding of js files is gb2312. When loading js using the <script>
tag without specifying the charset, the browser uses the encoding of the web page as the default encoding for the js file. This results in loading the gb2312 encoded js file in utf-8 format, ultimately causing garbled text.
Solution: To save a file with encoding