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]