layui-表格where緩存問題


方法一:修改table.js

i.config=t.extend(!0,{},i.config,e)

方法二:借鑒他人修改table.js

var d = t.extend(r, a.where);
a.where={};

方法三:修改每一個table.render()

var median;
search:function(){//搜索
    if(median != null) {
        median.where = {};
    }
    table.reload('cocust_index_table', {//重載
        done: function() {
            median = this;
        },page: {
            curr: 1 //重新從第 1 頁開始
        }
    });
},

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM