比如:一個用戶列表要按照用戶的積分高低去排序渲染(一般後臺會排序之後返回給你); 例如下麵的data是請求回來的數據, ...
比如:一個用戶列表要按照用戶的積分高低去排序渲染(一般後臺會排序之後返回給你);
例如下麵的data是請求回來的數據,
var data={ "ret_code": "0", "ret_msg": "ok", "data": { "users": [ { "pfid": 1000011, "nickname": "cabbageancy", "headimg": "http://wx.qlogo.cn/mmopen/ajNVdqHZLLASXYCVQQeiaXKA07Mx1Lu24juBVZ40ib9IsI6ImibfsWD1R3JS5I5L4LZMmgxpC4B7Y1taCZmXHQVKic4lbHibcntI7L6S7K4gnMW8/0", "count": 0, "follow_status": 0, "score": 19, "live_id":"454654646" }, { "pfid": 1000004, "nickname": "減肥溝溝壑壑健健康康快快", "headimg": "http://playback-langlive.ufile.ucloud.cn/4825891161c4d9a377be0785078c2158.jpg", "count": 0, "follow_status": 0, "score": 17, "live_id":"454654646" }, { "pfid": 1023841, "nickname": "優雅的貓", "headimg": "http://blob.ufile.ucloud.com.cn/e101f4896dbd4de38b7d7e7123828ee608d7b97251148720bb7678bf10ea21b8", "count": 0, "follow_status": null, "score": 15, "live_id":"454654646" }, { "pfid": 1000044, "nickname": "嘻嘻哈哈