摘要: 一个类可以去继承其他类里面的东西,这里定义一个叫Person的类,然后在constructor里面添加两个参数:name和birthday; 下面再添加一个自定义的方法intro,这个方法就是简单地返回this.name和this.birthday; class Person{ constructo 阅读全文
posted @ 2019-07-05 08:40 qnlz 阅读(6712) 评论(0) 推荐(1) 编辑