0

在我的骨干模型中,我有类似的东西

.......

initialize: function() {
  this.on('change', function() {
  console.log('Values changed');
});
},

defaults: {
  pagelocation: "foo",
},
setPageLocation: function(newLocation) {
 this.set({pagelocation: newLocation});
}
................

在我看来我有

showDashBoard: function() {
    this.breadCrumbsModel.setPageLocation('quax');
},
......................

出于某种原因,当我查看我的模型时,foo尽管我将其更改为quax

4

0 回答 0