摘要: Class语法 1:类的定义 class Point { m; //也可以定义在顶部 constructor(x, y) { //定义类的属性可以在 constructor 函数当中使用this this.x = x; this.y = y; } toString() { return '(' + this.x + ', ' + th... 阅读全文
posted @ 2019-10-09 10:22 初心不负 阅读(276) 评论(0) 推荐(0) 编辑