BootStrap-table 客户端分页和服务端分页的区别

2025-03-28 01:23:30
推荐回答(1个)
回答1:

当服务器没有对数据进行分页时,前端页面设计又要求进行分页,要分开来设置。

服务端分页:

responseHandler: function(data){
return data.response;
},

客户端分页,需要指定到rows:

sidePagination : "client",
responseHandler: function(data){
return data.response.rows;
},