Manual:Intro:Class Design - Learn About the Ext JavaScript Library: "// We define a method of the prototype object Ext.apply(myClass.prototype, { defaultClassName: 'x-widget-class', sharedMethod: function() { alert('I'm a shared method') } }); // Display our message A.sharedMethod(); // Same message B.sharedMethod();"
No comments:
Post a Comment