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

toast 的时间 duration 失效 #48

Closed
ghost opened this issue Feb 13, 2017 · 1 comment
Closed

toast 的时间 duration 失效 #48

ghost opened this issue Feb 13, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 13, 2017

window.location.replace('xxxx');
window.event.returnValue = false;
这两行放到toast前面,toast的时间就失效了。直接就执行回调了。
这两行放到toast回调里面,这两行就失效了。这两行是用来抑制后退的。
qq 20170213173717

@BearJ
Copy link
Collaborator

BearJ commented Feb 14, 2017

@BIGzs 你把前面的那两行换成alert(1) callback里的那两行换成alert(2)。你就知道为啥了?duration其实没有失效,是因为你代码让页面跳转了

@BearJ BearJ closed this as completed Feb 23, 2017
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