JavaScript语言精粹2
1、ES5面向对象编程:<pre<coderequest.js:一个文件一个模块functionService(){this.requestfunction(opts){this.opts{...Service.DEFAULTS,...opts}
1、ES5面向对象编程:<pre<coderequest.js:一个文件一个模块functionService(){this.requestfunction(opts){this.opts{...Service.DEFAULTS,...opts}