Backbone.js 前端JS框架
2017-03-17 16:49
288 查看
What is Backbone.js?
Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions,views withdeclarative event handling, and connects it all to your existing API over a RESTful JSON interface.
1.Introduce
Models and Views
Collections
API Integration
Backbone is pre-configured to sync with a RESTful API. Simply create a new Collection with the url of your resource endpoint:var Books = Backbone.Collection.extend({ url: '/books' });
The Collection and Model components together form a direct mapping of REST resources using the following methods:
GET /books/ .... collection.fetch(); POST /books/ .... collection.create(); GET /books/1 ... model.fetch(); PUT /books/1 ... model.save(); DEL /books/1 ... model.destroy();
2.PPT:
BackboneJS 介绍.pptx
相关文章推荐
- 前端框架---backbone.js之个人愚见
- 【前端框架】Backbone.js在大型单页面应用中的应用实践
- 使用js框架backbone来开发单页应用程序前端开发
- 前端js框架学习
- Nodejs+express+angularjs+mongodb搭建前端项目框架NJBlog
- backbone.js 框架 II
- backbone.js 框架 III
- 分享一个基于jQuery,backbone.js和underscore.js的消息提示框架 -...
- Javascript MVC/MVVM 框架对比, AngularJS vs Backbone vs Knockout
- 常用前端Js框架简介
- 关于重构JS前端框架的失败经验(顺便怀念那些死去的代码)
- 前端开发者使用JS框架的三个等级
- 构建前端MVC,seajs,underscore.js,backbone.js 等琐碎的其他
- 对于前端js框架对于事件处理的应用场景探讨
- 前端开发者使用JS框架的三个等级
- 重构JS前端框架
- 前端开发者使用JS框架的三个等级
- 不要再吹水地球人听不懂的技术,咱来点干货!--中文前端UI框架Kit(四)给你真正的原生的drag以及drop事件,而不是像市面上主流的Js框架jQuery,Ext等,利用mousemove事件,判断位置来模拟
- backbone.js 框架
- 自己封装的js前端框架(包含了jquery的常用功能)