TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Backbone.js by example

74 点作者 emwa超过 13 年前

4 条评论

wmwong超过 13 年前
I started looking at Backbone.js over the last few days.<p>I started with reading the documentation[1]. It is very well documented and contains a wealth of information.<p>Then I took a look at the Todo example[2] referenced in the documentation. It is also very well documented and puts together all the basics of the documentation into one clean example.<p>At this point, I started branching out into other tutorials. Everything I read basically reiterated the documentation and example above. This was good in terms of drilling the ideas into my head more solidly, but I could have stopped after the Todo example.<p>There was one notable tutorial though that was very different. Backbone provides a framework, but does not specify a structured way to store or load files. I believe this is on purpose. Backbone concentrates on the framework and gets out of your way. This leaves some head scratching though. This tutorial[3] combines Backbone.js with Require.js and provides an intriguing solution.<p>[1] <a href="http://documentcloud.github.com/backbone/" rel="nofollow">http://documentcloud.github.com/backbone/</a> [2] <a href="http://documentcloud.github.com/backbone/docs/todos.html" rel="nofollow">http://documentcloud.github.com/backbone/docs/todos.html</a> [3] <a href="http://backbonetutorials.com/organizing-backbone-using-modules/" rel="nofollow">http://backbonetutorials.com/organizing-backbone-using-modul...</a>
famoreira超过 13 年前
Interesting to see Backbone being used to model non-crud single page apps. I had to build a SVG based editor before and looking at this example I can see how using Backbone would have made my life easier.
bmelton超过 13 年前
Thank you.<p>As a backend developer trying to embrace Backbone, I'm finding that there isn't a wealth of consistently good material to learn from. One tutorial will push everything to the view, and the next pushes everything to the router.<p>It's hard to determine exactly what the best practices are, and making up my own mind isn't necessarily that informed, as I'm just learning the framework.<p>I'm hoping for more and more documentation to appear as there are things that I simply can't figure out how to do and can't find a reference for anywhere. Every resource helps.
评论 #3480456 未加载
评论 #3480030 未加载
dgudkov超过 13 年前
Good example. I liked your way of binding model events to views - which is usually not the most elegant part of Backbone. Thanks!