【重学前端】面向对象/原型链/继承

继承

寄生组合式继承

类数组转换成数组

1.[…arguments].slice()
2.Array.prototype.slice.apply(arguments)
3.Array.from(arguments).slice()

鸡生蛋

1
Function.__proto__ === Function.prototype
XiuerOld wechat
今天扫码,有机会分配一位小哥哥,在线教前端。
请不要给我打赏!