How front-end routing works

1. The user clicks on the routing link of the page

    Page routing link:

    

 2. The Hash value in the URL address bar has changed

    Hash value:

    

 3. The front-end routing has detected that the Hash address has changed

4. The front-end routing renders the component corresponding to the Hash address in the browser

おすすめ

転載: blog.csdn.net/Ygaidi/article/details/128126415