摘要: forEach const root = this; Array.prototype.myForEach = function(fn, context) { // 可选参数, 设置回调中的this指向 context = context || root; if (typeof fn !== 'fun 阅读全文
posted @ 2021-02-03 17:02 LiuWango 阅读(97) 评论(0) 推荐(0) 编辑