我正在使用jquery ajax请求更新td元素,并提取json值。 这在firefox和chrome上运行得很好,但在IE8-9上,文本功能非常慢。 有没有更好的方法来更新IE的值?
<tr>
<td class="left-justify">Within</td>
<td class="right-justify"><a href="#" id="dphw">${report.nbDayPhysSLA}</a></td>
<td class="right-justify"><a href="#" id="mphw">${report.nbMonthPhysSLA}</a></td>
</tr>
setInterval( function(){
$.ajax({
url:'@{showJsonReport}',
success:function(report){
$("#dphw").text(report.nbDayITSLA);
$("#mphw").text(report.nbMonthITSLA);
},
fail:function(error){
alert('error:'+error);
}
});
}, 60000);
});