IE性能问题更新td值元素

时间:2013-01-29 13:11:26

标签: json performance internet-explorer jquery

我正在使用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);
});

0 个答案:

没有答案