var obj = {}; for(var k in obj) { //遍历对象,k即为key,obj[k]为当前k对应的值 console.log(obj[k]); }
文章来自:https://zhidao.baidu.com/question/745580503520796772.html
var obj = {}; for(var k in obj) { //遍历对象,k即为key,obj[k]为当前k对应的值 console.log(obj[k]); }
文章来自:https://zhidao.baidu.com/question/745580503520796772.html