bootstrap-table 使用中问题记录
服务器返回数据
应用中服务器返回的json数据不止包含rows,和total, 需要对返回的数据进行处理。可以使用responseHandler函数,如返回数据格式为
{
‘code’: 0,
‘data’: '{
‘rows’:[],
‘total’: 100
}
},
可以在bootstraptable 的js的responseHandler 函数中添加
responseHanlder: f...
原创
2019-10-10 20:33:16 ·
487 阅读 ·
1 评论