for(var o in obj){ var target = "#num_"+o; $(target).text(obj[o].count); }
o是key
js遍历json对象
原文:http://my.oschina.net/jiangchike/blog/308563