jquery-easyui的Datagrid查詢等待計時

先放上效果圖spa

實現代碼3d

    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();
    }

 

 

相關文章
相關標籤/搜索