随笔 - 223  文章 - 0 评论 - 6 阅读 - 39万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

03 2023 档案
js 实现 类继承 通过super 给父级传参的效果
摘要:通过es5 实现 类继承 通过super 给父级传参的效果 先看看 原型继承 function es5parent(name, age) { this.name = name; this.age = age; } es5parent.prototype.say = function() { cons 阅读全文
posted @ 2023-03-31 11:23 浅唱年华1920 阅读(122) 评论(0) 推荐(0) 编辑
手写 call、applay、bind
摘要:call Function.prototype.mycall = function(context, ...args) { if (this Function.prototype) { return undefined; } context = context || window; const fn 阅读全文
posted @ 2023-03-30 16:19 浅唱年华1920 阅读(23) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示