在JavaScript 中,除了最基础的Object 是该格式外,ES6 新增的Map 也同样是键值对格式。 ... const m = new Map(); //新增/修改m.set('x', 1); //读取map.get('x'); ...
確定! 回上一頁