0
返回的JSON是預期的,但是當我console.log響應我得到這個瘋狂的結構,似乎永遠持續下去。我的每個模型都獲得了它本身所屬的確切集合的集合。究竟是怎麼回事?爲什麼我的收藏中的每個模型都有一個集合?
繼承人的代碼與IM
this.reporterCollection.fetch({
success: _.bind(function(response){
console.log("response");
console.log(response);
this.addChildView(new DirectReportListView({collection: response, supervisor: this.searchAlias, projectId: this.options.projectId}).render(), $("#testModalDiv"));
}, this)
});
忽略的觀點的東西調用它,在日誌行之前出現問題。
謝謝,我知道它只是一個指針現在,我認爲模式實際上是包含自身的集合。 – lorless