bootstrap-table v1.13.1 does not work? The code is as follows:
var params = $("-sharpbootstrap-table").bootstrapTable("getOptions");
params.queryParams = function(params) {
var search = {};
$.each($("-sharp" + currentId).serializeArray(), function(i, field) {
search[field.name] = field.value;
});
search.pageSize = params.limit;
search.pageNum = params.offset / params.limit + 1;
search.searchValue = params.search;
search.orderByColumn = params.sort;
search.isAsc = params.order;
return search;
}
$("-sharpbootstrap-table").bootstrapTable("refresh", params);