js 遍历json数组,返回的json数组不是键值对形式的,如何遍历?[ [3,"1","888888@qq.com","Mac",1,25,1231231233,"1"], [2,"1","896886824@qq.com","Mac",1,25,1231231222,"1"]]这种形式的,js中如何遍历呢 是楼猪要的不? 先转换成json 再循环[解决办法]LZ的不是json数组,就是个二维数组,按二维数组遍历就行了[解决办法]
LZ的不是json数组,就是个二维数组,按二维数组遍历就行了
Quote: 引用:LZ的不是json数组,就是个二维数组,按二维数组遍历就行了+1
Quote: 引用:Quote: 引用:LZ的不是json数组,就是个二维数组,按二维数组遍历就行了+3+2
Quote: 引用:LZ的不是json数组,就是个二维数组,按二维数组遍历就行了+3
var test=[[3,"1","888888@qq.com","Mac",1,25,1231231233,"1"],[2,"1","896886824@qq.com","Mac",1,25,1231231222,"1"]];alert(test[0]);alert(test[1]);for(var i in test[1]){alert(test[1][i]);}