本月博客排行
-
第1名
Xeden -
第2名
fantaxy025025 -
第3名
bosschen - paulwong
- johnsmith9th
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - gengyun12
- wy_19921005
- vipbooks
- e_e
- benladeng5225
- wallimn
- ranbuijj
- javashop
- jickcai
- fantaxy025025
- zw7534313
- qepwqnp
- robotmen
- 解宜然
- ssydxa219
- sam123456gz
- zysnba
- sichunli_030
- tanling8334
- arpenker
- gaojingsong
- xpenxpen
- kaizi1992
- wiseboyloves
- jh108020
- xyuma
- ganxueyun
- wangchen.ily
- xiangjie88
- Jameslyy
- luxurioust
- mengjichen
- lemonhandsome
- jbosscn
- nychen2000
- zxq_2017
- lzyfn123
- wjianwei666
- forestqqqq
- ajinn
- siemens800
- hanbaohong
- 狂盗一枝梅
- java-007
- zhanjia
- 喧嚣求静
- Xeden
最新文章列表
Part 8: Understanding Backbone.js Events
In this article, we will look at events in Backbone.js. We will see how backbone provides us events and how we can use backbone events in our application.
Background
Events are a vital part of any ap ...
Part 7: Understanding Backbone.js Routes and History
In this article, we will try to look at Routes in Backbone.js. We will try to understand how routes can be useful in a large scale single page applications and how we can use routes to perform action b ...
Part 6: Understanding Backbone.js Views
In this article, we will try to look at the View classes in Backbone.js and see how view classes help us in updating the relevant parts of the application easily.
Background
The biggest problem while ...
Part 5: Understanding Backbone.js Collections
In this article we will discuss about Backbone.js collections. We will see how we can use collections to manipulate a group of models and how we can use restul API to easily fetch and save collections. ...
Part 2: Understanding the basics of Backbone Models
When we talk about any MV* pattern, model is undoubtedly the most important part of the architecture/application. Its the model that contains all the application data. Along with keeping the data the m ...
Part 1: Introduction to Backbone.Js
It was a long time ago (almost a decade back) when most software applications were getting built as standalone applications. These applications were targeted at a single user and ran on their operating ...
Backbone和ReactJS的整合
Hello-React-Backbone
地址猛戳这里,PPT请看这里
目的:做Backbone和ReactJS的整合,该例子使用了Backbone的Model和ReactJS整合,可以认为是ReactJS替换掉了Backbone的View,这个是入门小例子 。
实现内容:通过传递的json数据构建Backbone的Model,将数据展现出来,点击按钮,修改数据,展示修改后的数据 ...
Backbone1.0.0数据验证的变化
0.5.3版本对Model数据验证时,绑定Error就可以了:
(function(){
var Model = Backbone.Model.extend({
initialize : function(){
this.bind('err
backbone实例Todo源码赏析
作者:zccst
Todo实例花了我两天多的事件,为了下次再忘记,决定记录下来:
$(function(){
/******************** 模型-集合 ********************/
var Todo = Backbone.Model.extend({
defaults:function(){//defaults是函数
return {t ...
backbone初步(秒味课堂)
作者:zccst
作为一个大型程序框架,backbone的思路是很好的
下面就好好学习一下
基本使用:
1,直接创建对象
2,给构造函数添加实例方法和静态方法
3,继承操作
4,自定义事件
5,数据与服务器
6,路由与历史管理
7,事件委托
8,前端模板
举例:
1,直接创建对象
var o = Backbone.Model();
2,给构造函数添加实例方法和静态方法
3,继承操作
A是 ...
backbone.js路由Router的使用
路由的使用很简单,路由的转向
router.navigate(fragment, [options])
其中options的参数为trigger和replace
两个参数的使用方法
router.navigate('/document/some', {trigger:true})
trigger参数说明
1、trigger=true,则调用注册该路由的回调函数
2、trigger=fals ...
backbone之Backbone.$
本文介绍一下 Backbone.$
If you have multiple copies of jQuery on the page, or simply want to tell Backbone to use a particular object as its DOM / Ajax library, this is the property for you.
...
springmvc Backbone实现的一个demo代码
通过前端js mvc framwork Backbone调用springmvc可以对联系人进行增删改查。
代码下载地址:springmvc Backbone实现的一个demo代码
访问localhost后如下图:
原创不易,转载请注明出处http://www.zuidaima.com/share/1550463401970688.htm
bootstrap jquery underscore backbone 新浪微博 springmvc整合demo代码
通过StatusController来Get获取新浪微博的api接口
https://api.weibo.com/2/statuses/public_timeline.json?access_token=2.00LW_xGCF2AIzC77d75c9d320hAXql&count=20获取得到微博列表。
效果如下图:
虽然实现了简单的效果,但通过该代码已经基本把通过backbon ...
使用backbonejs的router功能
来源:
http://css.dzone.com/articles/using-routers-backbonejs
demo:
http://demos-sagarganatra.appspot.com/backbone/backboneRouter.html#