forEachを使用してオブジェクトトラバース

Object.keys(OBJ).forEach(関数(キー){

console.log(キー、OBJ [キー])。

});

おすすめ

転載: www.cnblogs.com/wsj1/p/11294181.html