The garbled code may appear in the following two situations
1. Advanced browsers directly access the js path
2.jsp reference js
Solutions for the above two situations:
1. Check the character set of the browser
2. Check the character set of the web server. For example, if Tomcat configures UTF-8, set the corresponding character set charset on the reference js