摘要: 添加includes方法 if (!Array.prototype.includes) { Array.prototype.includes = function(search, start) { 'use strict'; if (typeof start !== 'number') { star 阅读全文
posted @ 2021-05-11 17:25 颗就完了 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 需要重写map对象 function Map() { this.elements = new Array(); // 获取Map元素个数 this.size = function() { return this.elements.length; }, // 判断Map是否为空 this.isEmpt 阅读全文
posted @ 2021-05-11 17:05 颗就完了 阅读(293) 评论(0) 推荐(0) 编辑