for(var k in obj) {
//遍历对象,k即为key,obj[k]为当前k对应的值
console.log(obj[k])
}
var json = {a: "aaaa",v: 'vvvv'}for(var k in json) {
console.log('key is ' + k)
console.log('value is' + json[k])
}
for(var k in obj) {
//遍历对象,k即为key,obj[k]为当前k对应的值
console.log(obj[k])
}
var json = {a: "aaaa",v: 'vvvv'}for(var k in json) {
console.log('key is ' + k)
console.log('value is' + json[k])
}