A_smile

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

写了大半年的extjs

1.markInvalid(string) ,给field 字段显示红圈

2.ajax 请求this 作用域

Ext.Ajax.request({

      url:'',

     method:'',

      success:function(resp){

            //想在此处使用外围函数调用,使用this,需标明作用域

            this.。。。

      } ,

    scope:this

});

3. initComponent和constructor的区别

    initComponent 函数是包含在constructor里面的

    重写initcomponent和constructor必须调用 this.callParent.call(arguments);

4.子类调用父类方法

   在子类里调用为 this.superclass.Fn.call(args);

   Fn:function(args){

       this.superclass.Fn.call(args);

 }

 

posted on 2018-03-15 14:41  气场两米八  阅读(91)  评论(0编辑  收藏  举报