BootstrapTable 刷新列表refresh
1、js
var conditionJson = { name: staffName, sex: sex, }; var query = {condition: JSON.stringify(conditionJson)}; $('#tableId').bootstrapTable("refresh", {query: query});
//格式 重点是query
$('#tableId').bootstrapTable("refresh", {query: {key1: val1, key2: val2, key3: val3}})
2、java
public Object list(String condition, @RequestParam(value = "pageNumber", defaultValue = "1") int pageNumber, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) { //可解析 查询条件 }