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