📅  最后修改于: 2020-10-27 03:41:00             🧑  作者: Mango
路由器用于路由客户端应用程序,并定义应用程序对象的URL表示。当Web应用程序为应用程序中的重要位置提供可链接,可书签和可共享的URL时,需要使用路由器。
下表列出了可用于操作BackboneJS的方法-路由器–
S.No. | Methods & Description |
---|---|
1 |
extend
It extends the backbone’s router class. |
2 |
routes
It defines the URL representation of applications objects. |
3 |
initialize
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 applications. |
6 |
execute
It is used when a route matches its corresponding callback. |