WeakMap学习思考- Map、WeakMap、强引用 、弱引用和垃圾回收
WeakMap学习思考MapMap的问题在于A map API could be implemented in JavaScript with two arrays (one for keys, one for values) shared by the four API methods. Setting elements on this map would involve pushing a key and value onto the end of each of those arrays sim
原创
2021-12-25 12:57:28 ·
398 阅读 ·
0 评论