getJSON()方法
怎么理解$.getJSON("http://www.imooc.com/data/sport.json",function(data){$this.atrr("disabled","true");
$.each(data,function(index,sport){
if(index==3)
$("ul").append("<li>"+sport["name"]+"<li>");
});
});
怎么理解$.getJSON("http://www.imooc.com/data/sport.json",function(data){$this.atrr("disabled","true");
$.each(data,function(index,sport){
if(index==3)
$("ul").append("<li>"+sport["name"]+"<li>");
});
});
2015-10-23
举报