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();