摘要: 构造方法: class Student{ constructor (name,age){ this.name =name; this.age=age; } run(){ console.log("我会跑"); } } let xs = new Student("曹伟",22); console.lo 阅读全文
posted @ 2017-07-17 20:27 前端兵哥哥 阅读(194) 评论(0) 推荐(0) 编辑