layui分頁工具超過10條數據,就沒法顯示了??
var?tableIns?=?table.render({
????elem:?'#customerList',
????url:?'/customer/list',?//數據的接口
????page:?true,?//分頁
????totalRow:?true,
????limit:?10,
????parseData:?function(res){?//對返回的原始數據進行轉換格式
????????return?{
????????????"code":?res.code,
????????????"msg":?res.msg,
????????????"count":?res.data.count,
????????????"data":?res.data.records
????????};
????},
2022-02-09
你是怎么定義Page對象的?