在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/網(wǎng)絡安全  HTML/ react f7怎么直接進入localhost:3007/about頁面(而不是

react f7怎么直接進入localhost:3007/about頁面(而不是進入home頁面)

老外很忙~沒人回我

?http://forum.framework7.io/t/...

跑這兒問一個:react f7怎么使瀏覽器地址欄url和當前route同步更新,我看了這個react的template,他的所有route在被訪問的時候,地址欄url是不變的。謝謝老鐵們

As stated above, the route's path property means the path/url that will be displayed in browser window address bar (if pushState enabled) when the following route will be loaded either by api or clicking on a link with same path.

<Button onClick={()=>{props.f7router.navigate('/memoDetail/', { pushState: true, history: true })}} ></Button>

{

path: '/course',
pushState: true,
history: true,
component: CoursePage,

}

都不行,地址欄就是不變。。。

回答
編輯回答
她愚我

view 加上pushState就好。
If you develop web app (not PhoneGap or Home Screen web app) it is useful to enable hash navigation (browser url will look like "http://my-webapp.com/#!/about.html"). User as well will be able to navigate through app's history by using browser's default back and forward buttons.

2018年4月25日 20:51