如何遍历json数据
例如
var image ={ width:100, height:100, id:2 } for (var attr in image ) { var propertyValue = image [attr]; console.log(propertyValue );
}
例如
var image ={ width:100, height:100, id:2 } for (var attr in image ) { var propertyValue = image [attr]; console.log(propertyValue );
}