Object.entries()
方法返回一个给定对象自己的字符串键值对的数组。
const obj = { a: "aa", b: "bb", c: "cc" }; console.log(Object.entries(obj), "Object.entries(obj)Object.entries(obj)"); 打印显示是这样
[ [ "a", "aa" ], [ "b", "bb" ], [ "c", "cc" ] ]
标签:aa,obj,bb,cc,Object,entries From: https://www.cnblogs.com/ht955/p/17831829.html