ui.Map.Linker.reset
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thay thế tất cả các phần tử trong danh sách bằng một danh sách mới hoặc nếu không có danh sách nào được cung cấp, hãy xoá tất cả các phần tử khỏi danh sách.
Trả về các phần tử trong danh sách sau khi áp dụng thao tác đặt lại.
Cách sử dụng | Giá trị trả về |
---|
Linker.reset(list) | List<Object> |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.data.activelist | ui.data.ActiveList | Đối tượng ui.data.ActiveList. |
list | List<Object>, không bắt buộc | Danh sách các phần tử. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ereset\u003c/code\u003e method replaces all elements in a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e with a new list, or removes all elements if no new list is provided.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the elements present in the list after the reset operation.\u003c/p\u003e\n"],["\u003cp\u003eThe method can be called on a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e instance using \u003ccode\u003eLinker.reset(list)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn optional 'list' argument of type List can be provided to specify the new elements.\u003c/p\u003e\n"]]],["The function `reset` replaces all elements within an `ActiveList` instance with a new list. If no new list is provided, it removes all existing elements. It operates on an `ActiveList` object and accepts an optional list of elements as its argument. The function returns the `ActiveList` containing the elements after the reset operation has been completed.\n"],null,["# ui.Map.Linker.reset\n\n\u003cbr /\u003e\n\nReplaces all elements in list with a new list or, if no list is provided, removes all elements from list.\n\n\u003cbr /\u003e\n\nReturns the elements in the list after the reset is applied.\n\n| Usage | Returns |\n|--------------------------|----------------|\n| Linker.reset`(`*list*`)` | List\\\u003cObject\\\u003e |\n\n| Argument | Type | Details |\n|----------------------------|--------------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `list` | List\\\u003cObject\\\u003e, optional | A list of elements. |"]]