0

我只是疯了,为什么这不起作用。我有一个获取数据的集合。该集合被绑定以在重置时运行渲染功能。但是没有调用渲染。

this.uploadTemplate = _.template(UploadTemplate);
this.artistCollection = new ArtistCollections();
this.artistCollection.bind('reset', this.render, this);
this.artistCollection.fetch({success: function(){console.log('jsjbajsb');},
      error: function(collection, response, options){ console.log(response)}});
// this.artistCollection.fetch({reset: true});
this.me = options.me;

既没有调用成功函数,也没有注释行工作

编辑:1 添加了错误选项

4

1 回答 1

0

所以,我没有发送正确的 Json-fied 响应。对@mu 的很多感谢都太短了。

我希望骨干在这种情况下会提供一个详细的错误。

于 2013-08-11T06:08:00.110 回答