使用map.length
是不行的。
可以使用下面的方法:Object.getOwnPropertyNames(map).length
上一篇

2020-03-04
下一篇

2020-03-03