Contenu connexe
Similaire à 基于YUI3的组件开发 (20)
基于YUI3的组件开发
- 1. 基于 YUI3 的组件开发 拔赤 [email_address] http://www.uedmagazine.com 2009-11-20
- 27. 基于原型的构造器 T.box = function(){ this. init .apply(this,arguments); }; T.box.prototype = { init :function(args){ // 构造代码 }, //… }; T.box = function(o){ this.a = o.sth; this.render(); }; 显式构造: 隐式构造: Example:dojo 、 mootools 、 prototype 等 js 库在代码继承方面的设计