Object.keys(obj).forEach(function(key){ console.log(key,obj[key]); }); 转载于:https://www.cnblogs.com/wsj1/p/11294181.html