用forEach遍历对象

Object.keys(obj).forEach(function(key){

console.log(key,obj[key]);

});

原文地址:https://www.cnblogs.com/wsj1/p/11294181.html