Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

浏览器前进后退按钮点击过快会导致异常 #36

Open
luckyhalley opened this issue Dec 5, 2016 · 0 comments
Open

浏览器前进后退按钮点击过快会导致异常 #36

luckyhalley opened this issue Dec 5, 2016 · 0 comments

Comments

@luckyhalley
Copy link

由于监听到hash change立即执行go方法,而go方法在执行过程中会等待转场动画完成后再删除前页的DOM,这就导致过快点击浏览器前进或后退按钮时,与之对应的DOM元素还没有被创建或已经被删除的情况下,再执行removeChild方法抛出异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant