日期:2014-05-16 浏览次数:20360 次
$.ajax({ url: url, dataType: 'json', success: function(data) { var jsonData = $.parseJSON(data); $.each(data,function(i,item){ if(item.appName == appName){ alert(item.deployTime); return false; } }); } }); $.getJSON(artooUrl, function(data){ $.each(data,function(i,item){ if(item.appName == appName){ alert(item.deployTime); return false; } }); });
var changeFreeUrl="changeFree.txt"; $.getJSON(changeFreeUrl, function(data){ var trcontent = "<tr><td colspan='3'></td></tr>"; $.each(data, function(i,item){ trcontent += "<tr><td>aaa</td><td>bbb</td><td>bbb</td></tr>"; }); $('#cftable').html(trcontent); $('#todispaly').css('display','block'); return false; });