const a = new Map([
['a', 1],
['b', 1],
['c', 1],
])
const b = [...a.keys()]
console.log('hhh-test', b);
上面代码构建为web-mobile后,会变成:
var n = new Map([["a", 1], ["b", 1], ["c", 1]])
, t = [].concat(n.keys());
console.log("hhh-test", t)
实际运行的时候,它俩打印的结果是不一样的