【发布时间】:2016-11-28 04:35:59
【问题描述】:
代码如下:
window.location.replace('http://thewebsiteurl');
延迟 0.1 秒后如何运行此代码?
-谢谢
【问题讨论】:
标签: javascript jquery url window delay
代码如下:
window.location.replace('http://thewebsiteurl');
延迟 0.1 秒后如何运行此代码?
-谢谢
【问题讨论】:
标签: javascript jquery url window delay
setTimeout(() => window.location.replace('http://thewebsiteurl'), 100) // in milli seconds
【讨论】:
【讨论】: