用forEach遍历对象

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

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

});

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