jquery-easyui的Datagrid查询等待计时

先放上效果图

实现代码

    var c = 0;
    var t;
    function timedCount(){
        $(".datagrid-mask-msg").text('数据加载中...目前已经耗时'+c+'ms');
        c=c+1;
        t=setTimeout("timedCount()",1);
     }

    function doSearch(){
        $('#gridTable').datagrid('clearSelections');
        $('#gridTable').datagrid('reload',Common.fieldtoJson("searchForm"));
        c = 0;
        timedCount();
    }

 

 

posted @ 2013-06-25 16:25  明日的烏鴉  阅读(524)  评论(0编辑  收藏  举报