Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Mobile Safari (iOS 6) で HTML5 を使用しています。しばらくしてから JavaScript コードを実行したい。たとえば、60 秒後に別のページにリダイレクトするには。
出来ますか?
これにより、コードが 60 秒後に 1 回だけ実行されます。
setTimeout(function() { /* your code here */ },60000);
この間
setInterval(function() { /* your code here */ },60000);
コードを60 秒ごとに実行します
https://github.com/paulirish/jquery-idletimer/を試しましたか?