PgaPlayersApp.AppView = Backbone.View.extend({
el: '#pga_players_profile_app',
initialize: function()
{
//Should I do 1?
this.listenTo(PgaPlayersApp.Players, 'sync', this.addAll);
//Should I do 2?
this.listenTo(PgaPlayersApp.Players, 'reset', this.addAll);
PgaPlayersApp.Players.fetch({reset: true});
}
});
在上面的代码示例中,侦听集合获取的首选方法是什么?(同步或重置)