pizi-backbone-entity:扩展Backbone.Model以处理其他模型之间的关系

时间:2021-05-03 04:11:50
【文件属性】:
文件名称:pizi-backbone-entity:扩展Backbone.Model以处理其他模型之间的关系
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-03 04:11:50
JavaScript pizi-backbone-entity 扩展Backbone.Model以处理其他模型之间的关系 属性 关系[对象] 定义与其他实体的关系的对象。 设置一个集合或模型构造函数。 范例: var TransactionCollection = Entity.Collection.extend({ model : TransactionModel }); Entity.Model.extend({ relations : { transactions : { // name of the attribute collection: TransactionCollection // collection's constructor } } }); 日期[Array] 包含日期类型属性名称的数组。 从存储库加载模型时,用于正确设置日期类型。
【文件预览】:
pizi-backbone-entity-master
----jsconfig.json(65B)
----package.json(576B)
----tests()
--------test.html(4KB)
----Gruntfile.js(2KB)
----src()
--------pizi-backbone-entity.js(4KB)
----.gitignore(43B)
----README.md(3KB)
----bower.json(276B)
----build()
--------pizi-backbone-entity.js(5KB)

网友评论