用chrome,js引用里设置了charset="gb2312",还是乱码
<head>
<meta htt-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>页面头部制作</title>
<link type="text/css" rel="stylesheet" href="css/main.css"/>
<script type="text/javascript" src="js/setHomeSetFav.js" charset="gb2312"></script>
</head>
<body>
<div class="top">
<div class="top_content">
<ul>
<li>联系我们</li>
<li>加入收藏</li>
<li><a href="#" onclick="SetHome(window.location)">设为首页</li>
</ul>
</div>
</div><!-- top结束 -->
</body>