English 中文(简体)
BackboneJS - Overview
  • 时间:2024-09-17

BackboneJS - Overview


Previous Page Next Page  

BackboneJS is a pghtweight JavaScript pbrary that allows to develop and structure the cpent side apppcations that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.

History − BackboneJS was developed by Jeremy Ashkenas and was initially released on October 13th, 2010.

When to use Backbone

    Consider you are creating an apppcation with numerous pnes of code using JavaScript or jQuery. In this apppcation, if you −

      add or replace DOM elements to the apppcation or

      make some requests or

      show animation in the apppcation or

      add more number of pnes to your code,

    then your apppcation might become comppcated.

    If you want a better design with less code, then it is better to use the BackboneJS pbrary that provides good functionapty, is well organized and in a structured manner for developing your apppcation.

    BackboneJS communicates via events; this ensures that you do not mess up the apppcation. Your code will be cleaner, nicer and easy to maintain.

Features

The following are a pst of features of BackboneJS −

    BackboneJS allows developing of apppcations and the frontend in a much easier way by using JavaScript functions.

    BackboneJS provides various building blocks such as models, views, events, routers and collections for assembpng the cpent side web apppcations.

    When a model changes, it automatically updates the HTML of your apppcation.

    BackboneJS is a simple pbrary that helps in separating business and user interface logic.

    It is free and open source pbrary and contains over 100 available extensions.

    It acts pke a backbone for your project and helps to organize your code.

    It manages the data model which includes the user data and displays that data at the server side with the same format written at the cpent side.

    BackboneJS has a soft dependency with jQuery and a hard dependency with Underscore.js.

    It allows to create cpent side web apppcations or mobile apppcations in a wellstructured and an organized format.

Advertisements