摘要: Function.prototype.myCall = function(obj) { //靠(call),帮(绑)甜(添)姐(解)执单(删)反(返) let context = obj || window; //1.绑定全局环境 绑 context.fn = this; //2.添加临时属性存储调 阅读全文
posted @ 2022-10-29 16:58 我喝牛奶不舔盖 阅读(82) 评论(0) 推荐(0)
摘要: Function.prototype.myApply = function(obj, arr) { //记忆:该应用(apply)帮天霸(判)执单(删)反(返) let context = Object(obj) || globalThis; //1.绑定全局环境 绑 context.fn = th 阅读全文
posted @ 2022-10-29 16:52 我喝牛奶不舔盖 阅读(32) 评论(0) 推荐(0)
I hear and I forget. I see and I remember. I do and I understand