一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

jQuery ajax大数据量each输出

时间:2010-09-08 编辑:简简单单 来源:一聚教程网

gettable.ashx文件
httpcontext.current.response.write(json.getjsondata(ds, keyfileds.tostring()));

大类的数据,就优化下看看

success: function(msg) {
   var tbodystr = [];
   $.each(msg, function(i) {
      tbodystr.push("");
      tbodystr.push("" + msg[i]._0 + "");
      tbodystr.push("" + msg[i]._1 + "");
      tbodystr.push("" + msg[i]._2 + "");
      tbodystr.push("");     
   });
   $("#tbmain tbody").append(tbodystr.join(""));
}

 

热门栏目