ee.call
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เรียกใช้ฟังก์ชันด้วยอาร์กิวเมนต์ตามตำแหน่งที่ระบุ
แสดงผลออบเจ็กต์ที่แสดงฟังก์ชันที่เรียก หากลายเซ็นระบุประเภทการคืนค่าที่รู้จัก ระบบจะแคสต์ค่าที่คืนไปยังประเภทนั้น
การใช้งาน | การคืนสินค้า |
---|
ee.call(func, var_args) | ComputedObject |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
func | ฟังก์ชัน|สตริง | ฟังก์ชันที่จะเรียกใช้ ออบเจ็กต์ ee.Function หรือชื่อของฟังก์ชัน API |
var_args | VarArgs<Object> | อาร์กิวเมนต์ตามตำแหน่งที่จะส่งไปยังฟังก์ชัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003e\u003ccode\u003eee.call()\u003c/code\u003e executes a specified function with provided arguments, returning a \u003ccode\u003eComputedObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a function (as an \u003ccode\u003eee.Function\u003c/code\u003e object or an API function name) and positional arguments.\u003c/p\u003e\n"],["\u003cp\u003eIf the function's signature defines a specific return type, the output is automatically cast to that type.\u003c/p\u003e\n"]]],[],null,["# ee.call\n\n\u003cbr /\u003e\n\nCall a function with the given positional arguments.\n\n\u003cbr /\u003e\n\nReturns an object representing the called function. If the signature specifies a recognized return type, the returned value will be cast to that type.\n\n| Usage | Returns |\n|---------------------------|----------------|\n| `ee.call(func, var_args)` | ComputedObject |\n\n| Argument | Type | Details |\n|------------|-------------------|------------------------------------------------------------------------------------|\n| `func` | Function\\|String | The function to call. Either an ee.Function object or the name of an API function. |\n| `var_args` | VarArgs\\\u003cObject\\\u003e | Positional arguments to pass to the function. |"]]