摘要: const list = [1, 2, 3] Array.prototype.myForeach = function (fn) { for (let i = 0; i < this.length; i++) { fn(this[i], i, this) } } Array.prototype.my 阅读全文
posted @ 2023-12-21 17:24 懒惰ing 阅读(11) 评论(0) 推荐(0) 编辑