保存后如何立即调用获取...我基本上想在成功发布后直接调用获取...
这是代码尝试:
search: function (search) {
searchM = new SearchM();
searchM.save({
channel: this.$('#channel').val(),
week: this.$('#week').val(),
year: this.$('#year').val(),
filter: this.$('#filter').val()
},
{success: listStore()});
function listStore () {
console.log('list it');
searchM.fetch({success: function (result) {
console.log(result);
}});
}
},