ee.Filter.stringContains
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวกรองแบบเอกภาคหรือทวิภาคที่ผ่านหากตัวถูกดำเนินการทางซ้ายซึ่งเป็นสตริงมีตัวถูกดำเนินการทางขวาซึ่งเป็นสตริงเช่นกัน
การใช้งาน | การคืนสินค้า |
---|
ee.Filter.stringContains(leftField, rightValue, rightField, leftValue) | ตัวกรอง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
leftField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftValue |
rightValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางด้านขวา ไม่ควรระบุหากมีการระบุ rightField |
rightField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการด้านขวา ไม่ควรระบุหากมีการระบุ rightValue |
leftValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftField |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a filter that checks if a string contains another string.\u003c/p\u003e\n"],["\u003cp\u003eThis filter can be used to compare strings from two properties (fields) or a property and a given value.\u003c/p\u003e\n"],["\u003cp\u003eEither \u003ccode\u003eleftField\u003c/code\u003e/\u003ccode\u003erightValue\u003c/code\u003e or \u003ccode\u003erightField\u003c/code\u003e/\u003ccode\u003eleftValue\u003c/code\u003e pairs must be provided but not both.\u003c/p\u003e\n"],["\u003cp\u003eThe returned filter is either unary (operating on a single input) or binary (operating on two inputs).\u003c/p\u003e\n"]]],[],null,["# ee.Filter.stringContains\n\nCreates a unary or binary filter that passes if the left operand, a string, contains the right operand, also a string.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------|---------|\n| `ee.Filter.stringContains(`*leftField* `, `*rightValue* `, `*rightField* `, `*leftValue*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------|-----------------------|---------------------------------------------------------------------------------------|\n| `leftField` | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |\n| `rightValue` | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |\n| `rightField` | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |\n| `leftValue` | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |"]]