backbone-sorted-collection:创建保持同步的主干集合的排序版本

时间:2021-06-26 09:36:23
【文件属性】:
文件名称:backbone-sorted-collection:创建保持同步的主干集合的排序版本
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-26 09:36:23
JavaScript 主干排序集合 创建保持同步的主干集合的只读排序版本。 var sorted = new SortedCollection ( originalCollection ) ; sorted . setSort ( function ( model ) { return model . get ( 'foo' ) ; } ) ; // or sorted . setSort ( 'foo' ) ; // or sorted . setSort ( function ( model ) { return calculateSomething ( model ) ; } ) ; sorted . reverseSort ( ) ; // also chainable sorted . setSort ( 'name' ) . reverseSort ( ) ; // or pa
【文件预览】:
backbone-sorted-collection-master
----.gitignore(68B)
----templates()
--------umd.hbs(522B)
----package.json(959B)
----src()
--------sorted-index.js(1KB)
----LICENSE.md(1KB)
----karma.conf.js(2KB)
----.travis.yml(155B)
----Gruntfile.js(948B)
----index.js(3KB)
----CHANGELOG.md(712B)
----README.md(4KB)
----backbone-sorted-collection.js(7KB)
----bower.json(731B)
----test()
--------test.js(17KB)

网友评论