使用$each遍历json 出现Uncaught TypeError: Cannot use ‘in’ operator to search for ‘length’ in…错误
使用JSON.parse转化成json对象,如下:
$.each(JSON.parse(data),function(index,item){
。。。。
}
使用$each遍历json 出现Uncaught TypeError: Cannot use ‘in’ operator to search for ‘length’ in…错误
使用JSON.parse转化成json对象,如下:
$.each(JSON.parse(data),function(index,item){
。。。。
}