1 2 3 4 5 6 7 8 9 10 11 12 |
Ext.define('Student', { name : 'unnamed', getName : function(){ return "Student name is" + this.name; } }, function(){ Ext.Msg.alert('Fiddle', 'Student object created!'); }); var studentObj = Ext.create('Student'); studentObj.getName(); |