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;
}
}
时间: 2024-10-07 21:40:50