用forEach遍历对象

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

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

});

posted @ 2019-08-03 11:17  未几  阅读(11436)  评论(0编辑  收藏  举报