提取 var obj = {x:1,y:2,z:3}; var objEntries = Object.entries(obj); console.log(objEntries); // [[“x”,1],[“y”,2],[“z”,3]] 转换回对象 var entries = [["x", 1],["y", 2],["z", 3]]; var obj = Object.fromEntries( entries ); console.log( obj ); // {x: 1, y: 2, z: 3}