论坛首页 Web前端技术论坛

遍历ext form表单的递归方法

浏览 2855 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-04-10   最后修改:2009-04-10

function eachItem(item,index,length) {
	if (item.isXType("combo")) {
            //修改下拉框的请求地址      
	   item.store.proxy.conn.url = url;   
	}
	if (item.items && item.items.getCount() > 0) {
	   item.items.each(eachItem, this);
	}
}
		
form.items.each(eachItem, this);

论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics