Backbone.js为复杂WEB应用程序提供模型、集合、视图的机构。其中模型用于绑定键值数据和自定义事件;集合附有可枚举函数的丰富API;视图可以声明事件处理函数,并通过RESRFul JSON接口连接到应用程序。
- – extend
- – constructor / initialize
- – get
- – set
- – escape
- – has
- – unset
- – clear
- – id
- – idAttribute
- – cid
- – attributes
- – changed
- – defaults
- – toJSON
- – sync
- – fetch
- – save
- – destroy
- – Underscore Methods (6)
- – validate
- – validationError
- – isValid
- – url
- – urlRoot
- – parse
- – clone
- – isNew
- – hasChanged
- – changedAttributes
- – previous
- – previousAttributes
- – extend
- – model
- – constructor / initialize
- – models
- – toJSON
- – sync
- – Underscore Methods (32)
- – add
- – remove
- – reset
- – set
- – get
- – at
- – push
- – pop
- – unshift
- – shift
- – slice
- – length
- – comparator
- – sort
- – pluck
- – where
- – findWhere
- – url
- – parse
- – clone
- – fetch
- – create
- – start
- – extend
- – constructor / initialize
- – el
- – $el
- – setElement
- – attributes
- – $ (jQuery)
- – template
- – render
- – remove
- – delegateEvents
- – undelegateEvents