問題描述比如首頁在 http://xxx/index.html#/ ,點擊一個鏈接轉到 application 的頁面,但是瀏覽器的 url 沒有變化;如何做到 url 也變化到相應路由 http://xxx/index.html#/applic... ?像 vue 的路由跳轉那樣, url 會變化 ?相關代碼routes = [{ path: '/',
url: './index.html',
},
// Page Loaders & Router
{ path: '/table/',
componentUrl: './pages/table.html',
},
{ path: '/application/',
componentUrl: './pages/application.html',
},
];<div class="row no-gap">
<a href="/application/" class="col page-content-item">應用</a>
<a href="/table/" class="col page-content-item">表格</a>
</div>還請知道的大神告知一下,感謝。
framework7 根據路由頁面跳轉時,如何做到 url 也變化到相應路由 ?
慕的地6264312
2019-01-04 16:05:56