返回博主主页
摘要: 构造函数如果采用以下这种方式声明,并不能为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 懒惰的星期六 阅读(58) 评论(0) 推荐(0) 编辑

Welcome to here

主页