2013-01-10 63 views

回答

12

这样做,th Ë第一个参数是指数:

$.each(tags, function(index, tag) { 
    console.log(tag); 
}); 
+0

哦,嗯...我不知道的第一个参数是该指数。谢谢。 – xbonez

+0

或者你可以这样做:'console.log(tags [tag]);' – dunli