jjzjj

hashHistory

全部标签

javascript - react router 中的 hashHistory 和 browserHistory 有什么区别?

我用谷歌搜索了很多,但没有找到以下问题的明确答案:react-router中的useHistory和浏览器历史记录有什么区别? 最佳答案 基本区别在于hashHistory使用如下URL:http://myurl.com/#page/another_page/another_page使用BrowserHistory,您可以获得正常的URL(无哈希):http://myurl.com/page/another_page/another_page 关于javascript-reactrout

javascript - react router 中的 hashHistory 和 browserHistory 有什么区别?

我用谷歌搜索了很多,但没有找到以下问题的明确答案:react-router中的useHistory和浏览器历史记录有什么区别? 最佳答案 基本区别在于hashHistory使用如下URL:http://myurl.com/#page/another_page/another_page使用BrowserHistory,您可以获得正常的URL(无哈希):http://myurl.com/page/another_page/another_page 关于javascript-reactrout