ui.util.setTimeout
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה נקראת אחרי השהיה קבועה.
מחזירה מפתח שאפשר להעביר אל ui.util.clearTimeout כדי להסיר את פסק הזמן.
שימוש | החזרות |
---|
ui.util.setTimeout(func, delay) | מספר |
ארגומנט | סוג | פרטים |
---|
func | פונקציה | הפונקציה להפעלה במרווח שצוין. |
delay | מספר | הזמן, באלפיות השנייה, שבו הטיימר צריך להשהות לפני הביצוע של הפונקציה שצוינה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eui.util.setTimeout\u003c/code\u003e executes a provided function after a specified delay.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a unique key that can be used with \u003ccode\u003eui.util.clearTimeout\u003c/code\u003e to cancel the scheduled execution.\u003c/p\u003e\n"],["\u003cp\u003eThe delay is defined in milliseconds, controlling the time before the function is triggered.\u003c/p\u003e\n"]]],[],null,["# ui.util.setTimeout\n\n\u003cbr /\u003e\n\nCalls a function after a fixed time delay.\n\n\u003cbr /\u003e\n\nReturns a key that can be passed to ui.util.clearTimeout to remove the timeout.\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| `ui.util.setTimeout(func, delay)` | Number |\n\n| Argument | Type | Details |\n|----------|----------|-------------------------------------------------------------------------------------------------------------------------|\n| `func` | Function | The function to run at the specified interval. |\n| `delay` | Number | The time, in milliseconds (thousandths of a second), the timer should delay before execution of the specified function. |"]]