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