ee.Filter.evaluate
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מאחזרת באופן אסינכרוני את הערך של האובייקט הזה מהשרת ומעבירה אותו לפונקציית הקריאה החוזרת שסופקה.
שימוש | החזרות |
---|
Filter.evaluate(callback) | |
ארגומנט | סוג | פרטים |
---|
זה: computedobject | ComputedObject | המופע של ComputedObject. |
callback | פונקציה | פונקציה מהצורה function(success, failure), שמופעלת כשהשרת מחזיר תשובה. אם הבקשה הצליחה, הארגומנט success מכיל את התוצאה המוערכת. אם הבקשה נכשלה, הארגומנט failure יכיל הודעת שגיאה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eRetrieves the object's value from the server and provides it to a specified callback function.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a \u003ccode\u003ecallback\u003c/code\u003e function with arguments for success (containing the result) and failure (containing an error message).\u003c/p\u003e\n"],["\u003cp\u003eApplicable to ComputedObject instances, allowing asynchronous retrieval of their values.\u003c/p\u003e\n"]]],["The `Filter.evaluate` method asynchronously fetches a `ComputedObject`'s value from the server. It utilizes a callback function to handle the response. This callback, structured as `function(success, failure)`, receives either the evaluated result in the `success` argument upon a successful request or an error message in the `failure` argument if the request fails. The method itself does not return a value. The method receives as a parameter the callback function and it needs to be invoked from an instance of a `ComputedObject`.\n"],null,["# ee.Filter.evaluate\n\n\u003cbr /\u003e\n\nAsynchronously retrieves the value of this object from the server and passes it to the provided callback function.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------|---------|\n| Filter.evaluate`(callback)` | |\n\n| Argument | Type | Details |\n|------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `computedobject` | ComputedObject | The ComputedObject instance. |\n| `callback` | Function | A function of the form function(success, failure), called when the server returns an answer. If the request succeeded, the success argument contains the evaluated result. If the request failed, the failure argument will contains an error message. |"]]