//搜索
var book_tb_this;
form.on('submit(search_btn)', function(data) {
if (book_tb_this != null) {
book_tb_this.where = {}; //置空where
}
book_tb.reload({ //book_tb是table的实例
url: '/book/search',
where: data.field,
page: {
curr: 1
},
done: function() {
book_tb_this = this;
}
});
return false;
});
layui数据表格查询时请求参数缓存问题
最新推荐文章于 2022-06-06 11:15:57 发布