---
title: "Backbone越挖越深"
author: "gavin"
date: "2012-03-08T13:28:54Z"
tags: []
categories: ["Web前端"]
slug: "backbone"
draft: false
lastmod: "2012-03-08T13:46:47Z"
id: 1446277
url: "https://gavin.iteye.com/blog/1446277"
---

最近想找一个single-page JavaScript application Framework ，而不是单纯的Toolkit+Widget。来看YUI3的一段介绍：

> The YUI App Framework is a rollup of the Controller, Model, Model List, and View components, combined to form a simple MVC-style framework for writing single-page JavaScript applications.

因为已经熟悉jQuery了，所以想用RequireJS+Backbone自己组合搭建，轻量级框架配合jQuery插件，不去学YUI了。在学习Backbone的时候发现github.com上很多非常好的代码，几乎想要的都有，兴奋！2012.3.8.iteye
以下两个资源列表集合不能不看，列出了很多文章，示例项目。很多好项目都是以此为起点找到的。

> https://github.com/documentcloud/backbone/wiki/Tutorials%2C-blog-posts-and-example-sites
> https://github.com/documentcloud/backbone/wiki/Extensions,-Plugins,-Resources

下面这个介绍的很全面，Backbone和各种高级东西结合，包括RESTful、Node.js, Express, Mongoose and MongoDB、RequireJS text plugin、RequireJS Optimizer、Mediator and Facade patterns、Testing Backbone Applications With Jasmine等等。

> https://github.com/addyosmani/backbone-fundamentals

下面这个项目让我感叹：为什么等我实现的才找到？它演示的RequireJS模块划分加载用法正是我想要的，除了测试部分和下面的项目外，不少什么。它todo示例也比Backbone官方todo示例改进不少。官方那个主要演示Backbone功能，最迷惑的是router和view如何配合项目设计来使用，或许后面的gapvis和Bookmarkly能带来一些启示。

> https://github.com/hswolff/forgetmenot

下面这个强悍了，让我觉得整个框架可以搭成Flex那样。

> https://github.com/derickbailey/backbone.marionette

要说像Flex，还要看下面这个项目的设计，设计太好了，面向对象的。

> https://github.com/nrabinowitz/gapvis

https://github.com/dangrossman/Bookmarkly不错的一个Backbone例子，后台用了express
https://github.com/teleological/slickback我jackie用slickgrid，所以关注一下
https://github.com/ccoenraets/backbone-directory不错的一个Backbone例子，还用到了Twitter Bootstrap. 有些应用可以用它布局。