风吹云儿走

jquery $.each遍历json数组方法(copy)

var arr = [{ name: "john", lang: "js" },{ name: "nailwl", lang: "jquery" },{ name: "吴磊", lang: "ext" }]; 
$.each( arr, function(index, content)
  alert( "the man's no. is: " + index + ",and " + content.name + " is learning " + content.lang ); 
});

posted on 2015-09-01 14:10  zhaotan  阅读(151)  评论(0)    收藏  举报

导航