function sleep(ms){ var time = new Date(); time.setTime(time.getTime() + ms); while(new Date().getTime() < time.getTime()); } window.onload = function(){ sleep(5000); alert('啊哈!'); }
Copyright © 2024 小小憨批儿 Powered by .NET 8.0 on Kubernetes