This article describes how to set up the Backbone. js framework environment of JavaScript and the Hellowworld example. Backbone is a front-end MVVM framework similar to the MVC structure and is very lightweight. If you need it, refer
Environment preparation
Before learning about Backbone, you need to prepare something:
First, you need to get the Backbone framework source file: http://documentcloud.github.com/backbone/
Backbone relies on the underlying approach of the Underscore framework, so you also need to download the source file of the Underscore framework: http://documentcloud.github.com/underscore/
In Backbone, DOM and event operations depend on third-party libraries (such as jQuery or Zepto). You only need to select one of them for download:
JQuery: http://jquery.com/
Zepto: http://zeptojs.com/
It seems quite troublesome, but the purpose of Backbone is to use a simple framework to build complex applications, so it is not complicated.
You can create an HTML page and introduce these frameworks, like this: