ExtJs 继承

来源:互联网 发布:背包问题 贪心算法 编辑:程序博客网 时间:2024/05/20 19:15
ExtJs 继承



Ext.define("SupClass",{config:{name:"sharp"},sayHello:function(){alert("hello world");},constructor:function(config){var th = this;th.initConfig(config);}});Ext.define("SubClass",{extend:"SupClass",constructor:function(config){var th = this;th.initConfig(config);}});console.info(SupClass.prototype);//Ext.create("SubClass").sayHello();



0 0
原创粉丝点击