87,910
社区成员
发帖
与我相关
我的任务
分享
<head>
<script type="text/javascript">
document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />");
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
function set_utf(){
$("head").append(
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"
);
}
</script>
</head>
<body>
<div>我是utf-8</div>
<button onclick="set_utf()">set_uft</button>
</body>