Unieap3.5-需要用到window.setTimeout的地方

1、js大数据量操作且需要显示进度条
unieap.showLoading(true);//进度条
            window.setTimeout(function(){
                checkUtils.setAllRowData();
                unieap.showLoading(false);//进度条
                },
             0);
2、定位光标焦点 
clearMachine : function(){
        unieap.byId("txtma1").setValue("");
        unieap.byId("txtma2").setValue("");
        unieap.byId("txtma3").setValue("");
unieap.byId("txtma3").getDataFilter().filter={NSERIAL_NUM_LENGHT : ""};
window.setTimeout(function(){unieap.byId("txtma1").focus();unieap.byId("txtma1").select(); }, 0);
    },

 

posted @ 2016-01-20 15:12  Luca-  阅读(405)  评论(0编辑  收藏  举报