摘要:
添加includes方法 if (!Array.prototype.includes) { Array.prototype.includes = function(search, start) { 'use strict'; if (typeof start !== 'number') { star 阅读全文
摘要:
需要重写map对象 function Map() { this.elements = new Array(); // 获取Map元素个数 this.size = function() { return this.elements.length; }, // 判断Map是否为空 this.isEmpt 阅读全文