ee.List.replace
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اولین رخداد oldval در لیست را با newval جایگزین می کند.
استفاده | برمی گرداند | List. replace (oldval, newval) | فهرست کنید |
استدلال | تایپ کنید | جزئیات | این: list | فهرست کنید | |
oldval | شیء | |
newval | شیء | |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe \u003ccode\u003ereplace\u003c/code\u003e method substitutes the first instance of \u003ccode\u003eoldval\u003c/code\u003e within the list with \u003ccode\u003enewval\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt operates on a list and returns a modified version of the same list.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires the original list (\u003ccode\u003ethis\u003c/code\u003e), the value to be replaced (\u003ccode\u003eoldval\u003c/code\u003e), and its replacement (\u003ccode\u003enewval\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# ee.List.replace\n\nReplaces the first occurrence of oldval in list with newval.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| List.replace`(oldval, newval)` | List |\n\n| Argument | Type | Details |\n|--------------|--------|---------|\n| this: `list` | List | |\n| `oldval` | Object | |\n| `newval` | Object | |"]]