【发布时间】:2012-04-20 08:34:36
【问题描述】:
这是 ExtJS 形状类:
Ext.define('Ext.chart.Shape', {
singleton: true,
circle: function (surface, opts) {
return surface.add(Ext.apply({
type: 'circle',
x: opts.x,
y: opts.y,
stroke: null,
radius: opts.radius
}, opts));
},
...
});
我想为这个类添加一个方法。例如:
myCircle: function (surface, opts) {
return ...
},
我该怎么做?
【问题讨论】:
-
4.0.7 现在。有什么不同吗?
标签: extjs extjs4 prototype extjs4.1