I generate a script for events, but when the time interval is too large, the function is called without delay. Code example:
setTimeout(function(){alert('hi')}, 2252124000); Has anyone encountered this problem? How can I get around it?
I generate a script for events, but when the time interval is too large, the function is called without delay. Code example:
setTimeout(function(){alert('hi')}, 2252124000); Has anyone encountered this problem? How can I get around it?
I think the fact is that the maximum value of Signed Integer 32bit is 2 147 483 647 , you went beyond it
Source: https://ru.stackoverflow.com/questions/598290/
All Articles
setTimeoutinto 1000 laps with awhile. Or, when the$(window).focus(function() {})tab is activated$(window).focus(function() {}), write the date / time variable into a variable when the user entered it to select the number of days from it compared to the previous date / time, compare it with the required number, and then show. And what has to do with the “fix the tab” - they just open automatically when the browser starts and not hang forever. - Andrew B