ぷ行走de猫げ

在快乐中成长,在快乐中学习!

06 2013 档案

摘要:更好的遍历Josn的方法,利用jquery的each方法: var arr1 = [ "one", "two", "three", "four", "five" ]; $.each(arr1, function(){ alert(this); }); 输出:one two three four five var arr2 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] $.each(arr2, function(i, item){ alert(item[0]); }); 阅读全文
posted @ 2013-06-23 13:11 李天翔 阅读(245) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

支付宝打赏