摘要:
构造函数如果采用以下这种方式声明,并不能为Point类生成一个名name为‘y1’的属性property。 Object.assign(Point.prototype, { constructor(x,y){ this.x=x; this.y1=y; }, fun1(){} }); 完整demo如下 阅读全文
posted @ 2021-10-27 14:59
懒惰的星期六
阅读(87)
评论(0)
推荐(0)
Welcome to here
主页