duduhehe 发表于 2013-2-7 16:28:45

Extjs FormPanel中文本框边上是按按的作法

    var bd = Ext.getDom('randCode'); //文本框  
    var bd2 = Ext.get(bd.parentNode); //其上级容器 
     bd2.createChild([{tag:'span',id:'xx',html:'<input value="..." type=button onclick=alert("HI")></input>'}]);//添加子控件
页: [1]
查看完整版本: Extjs FormPanel中文本框边上是按按的作法