我是否有使用Backbone.js的时候使用后端? [英] Do I have to use a Backend when using Backbone.js?

查看:116
本文介绍了我是否有使用Backbone.js的时候使用后端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个相对简单的应用程序,计算基于几个输入一定的价值。我不想一个后端,所有的计算可以在浏览器中完成。

我是一个小新JavaScript和的WebApp,我碰上了 Backbone.js的

我真的很喜欢MVC的设计,但是,他们提到后端不少。我的问题:


  • 是一个后端服务器绝对必需?

  • 是一个后端服务器可选的,但是没有一个人也没有没有太多的骨干点。

  • 还是会骨干真的会帮我吗?


解决方案

  1. 后端不是必需的。

  2. 骨干网能完全没有任何后台工作,如果你的应用程序不需要的。

  3. 这取决于你的应用程序。如果你想获取一些输入值,并计算出一个结果,那么骨干不会为你做 - 这将有助于你在code。如果你的应用程序是简单,不需要为模型,视图和集合或路由支持,再有就是使用主干是没有意义的。很难回答这个问题。

例如:经典待办事项的示例应用程序不使用任何后端

I want to develop a relatively simple application that calculates some value based on several inputs. I dont want a backend, all the calculation can be done in the browser.

Im a little new to JavaScript and WebApps and I came across Backbone.js.

I really like the MVC design, however, they mention a backend a lot. My question:

  • Is a backend server absolutely required?
  • Is a backend server optional but without one there isn't much point in backbone.
  • Or will backbone will really help me out?

解决方案

  1. Backend is not required.
  2. Backbone can fully work without any backend if your application doesn't require one.
  3. That depends on your application. If you want to retrieve value of some inputs and calculate a result then Backbone won't do that for you - it will help you structure your code. If you app is simple and don't need support for models, views and collections or routing, then there is no point in using Backbone. Hard to answer this question.

For example: Classic todo example application doesn't use any backend.

这篇关于我是否有使用Backbone.js的时候使用后端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆