⾸先先来讲下class,其实在JS中并不存在类,class只是语法糖,本质还是函数classPerson{}PersoninstanceofFunction;//true组合继承functionParent(value){this.val=value;}Parent.prototype.getVal…
⾸先先来讲下class,其实在JS中并不存在类,class只是语法糖,本质还是函数classPerson{}PersoninstanceofFunction;//true组合继承functionParent(value){this.val=value;}Parent.prototype.getVal…
讨论
登录后参与讨论
还没有评论,来说第一句吧。