Ext.onReady(function(){
    //第一种方法,子类不提供构造方法
 Animal = function(config){
  Ext.apply(this,config);
 }
// 
// Person = Ext.extend(Animal,{
//  name:"aa"
// })
// 
// var p = new Person({
//    age :14
// });
// 
// console.log(p);
 
 // 第二种方法
// Person = function(config){
//  //Ext.apply(this,config);
// }
// 
// Ext.extend(Person, Animal, {
//    name : 'upengs'
// });
    Person = Ext.extend(Animal,{
     name:'aaa',
     constructor:function(config)
     {
      Ext.apply(this,config);
     }
    });
 
 var p = new Person({
    age :14
 });
 
 console.log(p);
 
});