版本:jQuery1.5.2,jquery.ui.1.8.14
注:找不到网上说的用$(a.hash).html(n)那段代码,在返回值中加入unescape也没用。tab的html代码:<div id="content">               <div id="changelog">
                <ul>
                <li><a href="changelog/web.html" title="web">WEB程序</a></li>
                <li><a href="changelog/server.html" title="server">地面服务器程序</a></li>
                <li><a href="changelog/process.html" title="process">数据预处理程序</a></li>
                <li><a href="changelog/database.html" title="database">数据库</a></li>
                </ul>
<div id="web"></div>
<div id="server"></div>
<div id="process"></div>
<div id="database"></div>
               </div>            </div>
Tab的Javascript代码:$('#changelog').tabs({
spinner: '数据读取中...',
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("数据读取失败");
},
ajaxOptions: {
cache: false,
contentType: "text/html; charset=gb2312",
dataFilter: function(result) {
alert(unescape(result)); // 这里也显示乱码
}
}
});
tab内容之一的process.html代码:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>
<body>
<p>2011年7月11日  改进了数据接收处理方式,提高执行效率。</p>
<p>2011年7月11日  改进了数据接收处理方式,提高执行效率。</p>
<p>2011年7月11日  改进了数据接收处理方式,提高执行效率。</p>
<p>2011年7月11日  改进了数据接收处理方式,提高执行效率。</p>
<p>2011年7月11日  改进了数据接收处理方式,提高执行效率。</p>
</body>
</html>求助!! 谢谢!!