我正在尝试在 this.model.fetch({}) 发生时设置加载屏幕,不知道如何调用它...这是我当前尝试使用事件触发器但它没有触发...
search: function (e) {
console.log('searching...');
var eventL = this.vent;
e.preventDefault();
var that;
that = this.model;
//post instance to the server with the following input fields
this.model.fetch(
{data: {
channel: $('#channel').val(),
week: $('#week').val(),
year: $('#year').val(),
filter: $('#filter').val()
},
attack: this.options.vent.trigger('ok', data),
success: $.proxy(this.storeMusic, this )
});
},
如果可能的话,我也想将数据发回,以便将这些值包含到搜索屏幕中。