著名的 JavaScript 的 MVC 框架 BackBone.js 今天发布 1.0 版本。详情请看 发行说明。
主要改进包括:
- 引入 collection.set() 用来更新集合的内容
- The addition of the mirrored listenTo function in the Events mixin — which makes it easier to automatically unbind events when views are removed.
- 支持 HTTP PATCH 请求, sending only the changed state of your model to the server, instead of the full representation.
- New useful data-inspecting and filtering methods like where, pick, and omit.
- Many refactors, streamlinings, and optimizations to the core events and changes internal machinery.
- Beefed out literate documentation of the source code.
Backbone.js 是一种重量级javascript MVC 应用框架,通过Models进行key-value绑定及custom事件处理,通过Collections提供一套丰富的API用于枚举功能,通过 Views来进行事件处理及与现有的Application通过RESTful JSON接口进行交互.
BackBone 的下载地址:请点这里
