如何做一些活动,他们之间有一些延迟? [英] How to do some activities with some delay between them ?
本文介绍了如何做一些活动,他们之间有一些延迟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好:)
我想在asp.net上做一些动作,我想在每一个之间有一些延迟,有没有办法做到这一点?
如果有请给我一个代码作为例子
ex。我想按下button1,向label1添加一些文字,然后等待20秒,然后在标签上添加一些文字,
有点像那个
提前感谢:)
hello :)
I want to do some actions at asp.net, and I want some delay between each one, is there a way to do that ?
if there please provide me a code as an example
ex. I want when I press button1, to add some text to label1 , after that wait for 20 sec for example, and add some text to the label ,
some thing like that
thanks in advance : )
推荐答案
JQuery,the提供一个名为的api延迟()
和sleep()
我认为你可以使用它。
这是URL
http://api.jquery.com/delay/ [ ^ ]
可以使用setTimeout
事件
JQuery, the provide a api calleddelay()
and sleep()
I think you can use that.
Here are the URL
http://api.jquery.com/delay/[^]
May be you can usesetTimeout
event also
这篇关于如何做一些活动,他们之间有一些延迟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文