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.loading()么?如何主动关闭? #56

Open
minsonl opened this issue Jul 7, 2018 · 2 comments
Open

加载中用的是Toast.loading()么?如何主动关闭? #56

minsonl opened this issue Jul 7, 2018 · 2 comments

Comments

@minsonl
Copy link

minsonl commented Jul 7, 2018

加载中用的是Toast.loading()么?如何主动关闭?就是在获取API数据成功之后再关闭,不设置定时

@tianyong90
Copy link
Owner

Toast.close() 可以用于提前关闭 toast 层,可以自己设置一个稍长点儿的时间,然后自己用 Toast.close() 一关闭。 目前也有考虑在之后的更新中允许不倒计时。

@liaoyinglong
Copy link

 Toast.loading({
        message:'Loaidng',
        duration:0
 })

duration设置为0就一直都在了

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

No branches or pull requests

3 participants