layui数据表格查询时请求参数缓存问题

	
	//搜索
	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;
	});

版权声明:本文为qq_41193133原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。