用户如果在排行榜上面没有数据,那整个排行榜数据都获取不到,获取下来的数据为null
var leaderboard = AV.Leaderboard.createWithoutData('total');
leaderboard.getResultsAroundUser({
limit: 100,
skip: 0,
selectUserKeys: ['username', 'iocn', 'nickName']
}).then(function (rankings) {
Global.total = rankings
Global.totalLength = (Number)(rankings.length);
console.log("前100", Global.total)
}).catch(console.error)