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) {
//可解析 查询条件



}

  

  

posted @ 2021-08-05 15:42  唏嘘-  阅读(1637)  评论(0编辑  收藏  举报