在同一个页面导入编码不同的javascript
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--eg.--> <script type=”text/javascript” src=”test.js” charset=”utf-8″></script> <script type=”text/javascript” src=”test1.js” charset=”gb2312″></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--eg.--> <script type=”text/javascript” src=”test.js” charset=”utf-8″></script> <script type=”text/javascript” src=”test1.js” charset=”gb2312″></script>