javascript - 用 react-router 的history 瀏覽器也就卡死了,求解決方法
PHP中文网
PHP中文网 2017-05-19 10:22:18
0
1
482

用的這個 history模組

根據文件

import createHistory from 'history/createBrowserHistory'

const history = createHistory()

const location = history.location


history.push('/home', { some: 'state' })

然後整台電腦 cpu 就飛快的轉,瀏覽器也就卡死了,求解決方法

PHP中文网
PHP中文网

认证0级讲师

全部回覆(1)
伊谢尔伦

檢查下是不是有死循環

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!