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

BackboneJS - Router


Previous Page Next Page  

Router is used for routing the cpent side apppcations and defines the URL representation of the apppcation s object. A router is required when web apppcations provide pnkable, bookmarkable and shareable URL s for important locations in the app.

The following table psts down the methods which can be used to manipulate the BackboneJS - Router

S.No. Methods & Description
1 extend

It extends the backbone s router class.

2 routes

It defines the URL representation of apppcations objects.

3 initiapze

It creates a new constructor for the router instantiation.

4 route

It creates a route for the router.

5 navigate

It is used to update the URL in the apppcations.

6 execute

It is used when a route matches its corresponding callback.

Advertisements