bootstrap-table 接收后台数据报错, 'total' undefined

bootstrap-table ajax请求,接收后台json数据报错,Cannot read property 'total' of undefined。
https://img.mukewang.com/5c0dd4f80001cf3304020095.jpg

后台返回结果格式和网上的一样:
{"total":10,
"rows": [{"password":"123","last_login_time":1492866743000,"create_time":1466046933000,"user_id":1,"user_name":"admin"},{"password":"22","last_login_time":1492538400000,"create_time":1492019996000,"user_id":4,"user_name":"下次"},{"password":"111","last_login_time":1491501637000,"create_time":1491501637000,"user_id":10,"user_name":"小王"}]
}
求大神们帮忙看看

https://img1.mukewang.com/5c0dd50500010d5807260092.jpg

我把bootstrap-table.js里的这一行注释了,就跑通了,但是不显示翻页图标,只有下图的结果。。。。

https://img1.mukewang.com/5c0dd518000158cb03840043.jpg

开心每一天1111
浏览 2062回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript