摘要: Array.prototype.my_filter = function(fn, context) { let resArr = [] const me = this const ctx = context ? context : this // 判断上下文 if (typeof fn !== 'f 阅读全文
posted @ 2020-08-05 22:34 毛小星 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Array.prototype.my_map = function(fn, context) { let resArr = [] const me = this const ctx = context ? context : me // 定义上下文 if (typeof fn !== 'functi 阅读全文
posted @ 2020-08-05 22:20 毛小星 阅读(1482) 评论(0) 推荐(0) 编辑