摘要: class 专题 定义 class //es5 类的定义 属性定义在 function 上, 方法定义在原型链上 function foobar(){ this.foo_ = 'foo'; this.bar_ = 'bar'; } foobar.prototype.sayHello = functi 阅读全文
posted @ 2019-09-12 19:02 zonehoo 阅读(481) 评论(0) 推荐(0) 编辑