62,046
社区成员
发帖
与我相关
我的任务
分享
function ClassA(sColor) {
_classes.defineClass("ClassA", prototypeFunction);
this.init(sColor);
function prototypeFunction() {
ClassA.prototype.init = function (sColor) {
this.parentMethod("init");
this.color = sColor;
};
ClassA.prototype.sayColor = function () {
alert(this.color);
};
}
var Prototype = {
Version: '1.4.0',
ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',
emptyFunction: function() {},
K: function(x) {return x}
}
var Class = {
create: function() {
return function() {
this.initialize.apply(this, arguments);
}
}
}