backbone-associations

    1热度

    1回答

    我的问题非常特定于骨干关联(http://dhruvaray.github.io/backbone-associations)。我想知道在嵌套模型上设置属性时是否可以合并属性。这里是一个减少的问题: // define the Layout model var Layout = Backbone.AssociatedModel.extend(); // define the User mod

    0热度

    1回答

    我有一个地址模型与1-1关系的员工模型。我想让Employee模型知道地址是否发生了一些变化,而这些变化正在被视图监听。 var Employee = Backbone.AssociatedModel.extend({ relations: [ { type: Backbone.One, //nature of the relationship