我有jquery ajax 定时每秒访问服务器 版本1.5.1 在IE6下客户端内存一直增长,服务器是2008 x64 但是我把服务器换成win7 32 或 2003 32位 同一台客户端内存就不长了,会回收,是遇鬼了么? 望高手解释.代码:test.html
<html>
<head>
<script type="text/javascript" src="jquery.js" ></script>
</head>
<body>
<div id="tt">
</div>
</body>
</html>
<script type="text/javascript">
$(
function(){
window.setInterval("test()",200);
}
);
function test()
{
$.ajax({
url: "test1.aspx",
type: "get",
dataType: 'text',
cache: false,
success: function (status)
{
$("#tt").text(status);
}
});
}
</script>服务器:
<%@ Page Language="C#" %>
<%
Response.Write(DateTime.Now.ToString());
%>
<html>
<head>
<script type="text/javascript" src="jquery.js" ></script>
</head>
<body>
<div id="tt">
</div>
</body>
</html>
<script type="text/javascript">
$(
function(){
window.setInterval("test()",200);
}
);
function test()
{
$.ajax({
url: "test1.aspx",
type: "get",
dataType: 'text',
cache: false,
success: function (status)
{
$("#tt").text(status);
}
});
}
</script>服务器:
<%@ Page Language="C#" %>
<%
Response.Write(DateTime.Now.ToString());
%>
试过IE7,8,9吗?