$.ajax({ type: 'post', url: xxx.action', dataType: 'text', success: function(data){ var dataObj=eval("("+data+")"); for(var i=0;i<dataObj.length;i++){ alert(dataObj[i].id+" "+dataObj[i].name); } var jsonObj=eval("("+data+")"); $.each(jsonObj, function (i, item) { alert(item.id + "," + item.name); }); }, error: function(text) {} });

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2021-07-11
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-01-30
相关资源
相似解决方案