- var objArray = Ext.DomQuery.select("input[type=submit]");
- Ext.each(objArray, function(obj) {
- var btn = new Ext.Button({
- text : obj.value,
- applyTo : obj,
- handler : obj.onclick,
- type : obj.type
- });
- btn.getEl().replace(Ext.get(obj));
- });
不分类遍历
不分类遍历