自定义map对象,用于再不支持es6的map的时候
摘要:
function Map() { this.elements = new Array(); // 获取Map元素个数 this.size = function() { return this.elements.length; }, // 判断Map是否为空 this.isEmpty = functi 阅读全文
posted @ 2018-12-03 16:13
强大的程序猿人
阅读(594)
评论(0)
推荐(0)
浙公网安备 33010602011771号