setTimeout没有时间效果和用法 [英] setTimeout without time effect and usage

查看:80
本文介绍了setTimeout没有时间效果和用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以定义我为什么使用

can any one please define me that why we use

setTimeout(function() {
    ...
}, 0);











or

setTimeout(function() {
    ...
};



简单而简洁的答案要求请不要我已经检查过的链接。


simple and concise answer required please no links i have already checked.

推荐答案

我知道你说没有链接,但这个答案很好地解释了它为什么有用:

http://stackoverflow.com/a/4575011/2619912 [ ^ ]
I know you said "no links", but this answer explains very well why it is useful:
http://stackoverflow.com/a/4575011/2619912[^]


我已经检查过没有链接



很难!:笑:

你显然要么没有检查得太好,要么你没看过你找到的东西。

一个非常简单的google for setTimeout功能可以直接进入w3Schools: http://www.w3schools.com/jsref/met_win_settimeout。 asp [ ^ ] - 它准确地告诉你它做了什么,甚至给你举例!



一点点阅读,它应该都有意义。
"no links i have already checked"

Tough! :laugh:
You clearly either haven't checked too well, or you didn't read what you found.
A very simple google for the setTimeout function takes you straight to w3Schools: http://www.w3schools.com/jsref/met_win_settimeout.asp[^] - which tells you exactly what it does, and even gives you examples!

A small bit of reading, and it should all make sense.


这篇关于setTimeout没有时间效果和用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆