Backbone.js - id vs idAttribute vs cid

后端 未结 4 1923
一个人的身影
一个人的身影 2020-12-24 00:56

I\'ve been studying Backbone.js for a few weeks, and I feel comfortable using views with models, routers, and collections.

I still have some big gaps:

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 01:35

    id is server model id, cid is client id.

    • server model: such as Rails Model
    • client model: backbone model

提交回复
热议问题