extjs日常笔记

来源:互联网 发布:保密局检查软件 编辑:程序博客网 时间:2024/04/26 01:08
1.获取单选组件的值,inputValue为radioGroup重radio的inputValue属性,为人为设定.
  var me = this;
        var tabObj = this.getRiskySQLRadioGroupTab();
    tabObj.items.each(function(item){
             if(item.getValue()){


            Ext.MessageBox.alert("tooltip",item.inputValue);
             }
    })


2.正则表达式
var reg = /^[0-9]+$/;
reg.test("字符串");


3.extjs 对于textfield key响应,应该设置属性 enableKeyEvents: true,  onRiskySQLFromKeypress: function(textfield, e, eOpts) {}为响应函数;
0 0
原创粉丝点击