ajax刷新会显示重复的数据
优客助手 2013-05-20 04:54:30
function shuaxin() {
jQuery.post("../ajax/shuaxin.ashx",
function (date, statue) {
if (statue == "success") {
$("#xianshi").append(date);
}
else {
alert(date + "ds");
}
});
setTimeout("shuaxin()", 2000);
}
shuaxin();
代码没错,可以运行。就是会一直重复数据,求解决