如果4e3等于4秒。我会在3秒内使用什么?还是2秒?
<SCRIPT LANGUAGE="javascript">
$( function() {
setTimeout(function() {
$('#loadingque').trigger('click');
}, 4e3);
});
</script>发布于 2012-11-15 17:02:03
如果你理解为什么4e3是4000,那么你就能弄清楚3000是什么样子的。eN的意思是10 to the power N,所以3乘以10的3次方等于3000,或3e3。
发布于 2012-11-15 17:03:35
setTimeout(function() {
// Do something after 5 seconds
}, 5000);
jQuery(document).ready(function () {`enter code here`
//hide a div after 3 seconds
setTimeout( "jQuery('#div').hide();",3000 );
});希望这些能对你有所帮助。
发布于 2012-11-15 17:04:46
只需要几毫秒
setTimeout(function() {
document.write(new Date());
}, 3000);https://stackoverflow.com/questions/13394182
复制相似问题