表格從新加載 where 攜帶上次值問題

表格重載兩種方式:this

方式一: tableIns.reload(options)   注意這種方式的重載是不會攜帶上次數據加載時的where值     //使用 第一次渲染返回的對象 var tableIns =  table.render({});url

方式二:table.reload(ID, options)  這種方式默認是爲攜帶上次 加載時的where值  若是想不攜帶上次where值  可在 渲染完成回調裏將where 置空spa

//表格從新加載
table.reload('datatable', {
url: '/User/GetUserList' //數據接口
, where: conditioin
, page: {
curr: 1 //從新從第 1 頁開始
},
//渲染完成回調
done: function (res, curr, count) {
// this.where = {};   
}
});對象

相關文章
相關標籤/搜索