1 个回答

这不是同一个键,

['a'] === ['a']  //false
const map = new Map()
const key = ['a']
map.set(key, 555);
map.get(key) //555
推荐问题