backbone
backbone issue
文件结构
app
├── assets # 根目录的assert
│ ├── images
│ └── index.html
├── common # backbone的配置、application、基类等等
│ ├── application.coffee
│ ├── config.coffee
│ ├── mediator.coffee
│ ├── mock.coffee
│ └── views
│ └── base
│ └── view.coffee
├── lib
│ ├── utils.coffee
│ └── view-helper.coffee
└── tutorial # 具体的模块
├── assets
│ └── README.md
├── controllers
│ └── README.md
├── initialize.coffee
├── routes.coffee
└── views # view和template
├── home
│ ├── list-view.coffee
│ └── templates
│ └── README.md
└── README.md修改页面的dom使用render
view el
MVC
1.定义model|collection
2.定义view
chaplin
view
item-view
list-view
Last updated