- 注册时间
- 2019-4-11
- 最后登录
- 2024-3-6
- 阅读权限
- 10
- 积分
- 84
- 精华
- 0
- 帖子
- 11
|
循环触发doValueChanged;打印顺序是a,b,0,1,并非是a,0,b,1,怎么才能边塞值边触发valuechanged方法?
<input class="mini-combobox" id="a" style="width:150px;" textField="text" valueField="id" showNullItem="true" allowInput="true"/>
<input class="mini-combobox" id="b" style="width:150px;" textField="text" valueField="id" showNullItem="true" allowInput="true"/>
var aiCommon=["a","b"];
$.each(aiCommon,function(index,porp){
var mini_obj = mini.get(porp);
mini_obj.setValue(aiFormJson[porp]);
console.log(porp);
mini_obj.doValueChanged();
})
mini.get("a").on('valuechanged',function(e){
console.log(0);
})
mini.get("b").on('valuechanged',function(e){
console.log(1);
})
|
|