摘要: 在类里面添加静态方法可以使用staitc这个关键字,staitc就是不需要实例化类就可以使用的方法 class Chef{ constructor(food){ this.food = food; thid.dish = []; } //getter get menu(){ return this. 阅读全文
posted @ 2019-07-04 08:39 qnlz 阅读(1799) 评论(0) 推荐(0) 编辑