标签:cti com create contain tool 对象 alt bsp ges
var Class = {
create:function() {
return function() {
this.initialize.apply(this, arguments);
};
}
}
var Tool = Class.create();
Tool.prototype = {
initialize: function($container){
this.val = 32;
},
getVal:function(){
return this.val;
},
setVal:function(_val){
this.val = _val;
}
}
js中 理解 this.initialize.apply ( this, arguments ) 定义对象的方式
标签:cti com create contain tool 对象 alt bsp ges
原文地址:http://www.cnblogs.com/zhujiasheng/p/6440539.html