var Shape = Class.create(new Element("div", {
"class": "shape"
}), {
//constructor of Shape
initialize: function () {
}
})
Shape 类继承自 Element 的一个实例,我想知道的是,如果可以的话,如何在 Shape 的构造函数中引用这个实例?
var Shape = Class.create(new Element("div", {
"class": "shape"
}), {
//constructor of Shape
initialize: function () {
}
})
Shape 类继承自 Element 的一个实例,我想知道的是,如果可以的话,如何在 Shape 的构造函数中引用这个实例?