有没有办法在模型集合中命名Backbone模型?我正在尝试更新集合,需要一种方法来确保我没有复制信息。
Backbone.Collection {length: 1, models: Array[1], _byId: Object, on: function, once: function…}
_byId: Object
length: 1
models: Array[1]
0: Backbone.Model //Name this guy
length: 1
__proto__: Array[0]
__proto__: Backbone.Collection
我正在设置它
this.app.user.get('Shipping').add(address);