Object.create相当于搞了一个继承关系,不会因为this.context添加新的属性而改变原来的值。
class中学会用object.create代替cloneDeep.
猜你喜欢
转载自blog.csdn.net/weixin_42201346/article/details/104314584
今日推荐
周排行