摘要: 有一个类: class Point { constructor(x, y) { this.x = x; this.y = y; } } 如果我们在控制台中输出其实例: console.log(new Point(10, 20)); 控制台中的输出结果为: Point { x: 10, y: 20 } 阅读全文
posted @ 2019-10-28 06:30 sxliuchunrong 阅读(996) 评论(0) 推荐(0)