解决js文件乱码问题 引入时加入属性 charset="utf-8" 例如: <script type="text/javascript" src="index.js" charset="utf-8"></script>