I’m trying out Meteor’s Leaderboard example and am running into a bug in trying to randomize the players’ scores.
页: 1 在模拟援引/扮演者/更新未定义的的效力时,例外
相关法典也这样做:
click input.randomize_scores : function () {
Players.find().forEach(function (player) {
random_score = Math.floor(Math.random()*10)*5;
Players.update(player, {$set: {score: random_score}})
});
}
我的感觉是,我在这里做的事情令人sil笑.。 我确实赞赏一位协调人。