entries 方法你可以很容易的将 Object 转换为 Map : var obj = { foo: "bar", baz: 42 }; var map = new Map(Object.entries(obj)); console.log(map); ...
確定! 回上一頁