Backbone.js 通过提供键值绑定和自定义事件的模型来提供Web应用程序的结构,具有可枚举功能的丰富API的集合,具有声明性事件处理的视图,并通过RESTful JSON接口将其全部连接到现有的API。
Backbone.js
给JS应用程序提供一些模型、视图、集合和事件的Backbone。(Give your JS App some Backbone with Models, Views, Collections, and Events. )
Github stars Tracking Chart
使用Backbone,您将数据表示为Models,可以创建、验证、销毁并保存到服务器。每当UI动作导致模型的属性发生变化时,模型将触发“更改”事件,可以将显示模型状态的所有视图通知给变更,以便能够相应地进行响应,使用新信息重新显示。在完成的Backbone应用程序中,您不必编写查找DOM的粘贴代码来查找具有特定ID的元素,并手动更新HTML —— 当模型更改时,视图只会自动更新。
从哲学上讲,Backbone试图发现最基本的数据结构(模型和集合)和用户界面(视图和url),在使用JavaScript构建web应用程序时通常是有用的。在一个包罗万象的生态系统中,所有的框架都是司空见惯的,许多库要求您的站点重新组织,以适应自己的外观,感觉和默认行为 —— Backbone应该继续是一个工具,让您有自由设计您的Web应用程序的完整体验。
Main metrics
- Overview
-
Name With Owner jashkenas/backbone Primary Language JavaScript Program language JavaScript (Language Count: 3) Platform License: MIT License - 所有者活动
-
Created At 2010-09-30 19:41:28 Pushed At 2025-04-01 11:14:31 Last Commit At 2025-04-01 13:11:46 Release Count 35 Last Release Name 1.6.1 (Posted on 2025-04-01 13:10:57) First Release Name 0.1.0 (Posted on ) - 用户参与
-
Stargazers Count 28.1k Watchers Count 1.3k Fork Count 5.4k Commits Count 3.5k Has Issues Enabled Issues Count 2405 Issue Open Count 41 Pull Requests Count 881 Pull Requests Open Count 20 Pull Requests Close Count 970 - 项目设置
-
Has Wiki Enabled Is Archived Is Fork Is Locked Is Mirror Is Private
/\ _`\ /\ \ /\ \ __
\ \ \ \ \ __ ___\ \ \/'\\ \ \____ ___ ___ __ /\_\ ____
\ \ _ <' /'__`\ /'___\ \ , < \ \ '__`\ / __`\ /' _ `\ /'__`\ \/\ \ /',__\
\ \ \ \ \/\ \ \.\_/\ \__/\ \ \\`\\ \ \ \ \/\ \ \ \/\ \/\ \/\ __/ __ \ \ \/\__, `\
\ \____/\ \__/.\_\ \____\\ \_\ \_\ \_,__/\ \____/\ \_\ \_\ \____\/\_\_\ \ \/\____/
\/___/ \/__/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/_/\/_/\/____/\/_/\ \_\ \/___/
\ \____/
\/___/
(_'_______________________________________________________________________________'_)
(_.———————————————————————————————————————————————————————————————————————————————._)
Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.
For Docs, License, Tests, pre-packed downloads, and everything else, really, see:
http://backbonejs.org
To suggest a feature or report a bug:
https://github.com/jashkenas/backbone/issues
For questions on working with Backbone or general discussions:
https://groups.google.com/forum/#!forum/backbonejs,
http://stackoverflow.com/questions/tagged/backbone.js, or
https://gitter.im/jashkenas/backbone
Backbone is an open-sourced component of DocumentCloud:
https://github.com/documentcloud
Many thanks to our contributors:
https://github.com/jashkenas/backbone/graphs/contributors
Special thanks to Robert Kieffer for the original philosophy behind Backbone.
https://github.com/broofa