About front-end routing

Many front-end frameworks are used for spaapplications. For example, backbone,angular,vuethey all have their own routing systems that manage each page switch in the front-end. If you want to understand the implementation of routing, the best way is to implement one manually.
There are two ways to implement front-end routing. One is launched by html5 historyapi. We are talking about another hashroute, which is a common  # number. This method has better compatibility.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325280065&siteId=291194637