ui.Map.Linker.forEach
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.
Lặp lại trên từng phần tử, gọi lệnh gọi lại được cung cấp. Lệnh gọi lại được gọi cho từng phần tử như: callback(element, index).
Cách sử dụng | Giá trị trả về |
---|
Linker.forEach(callback) | |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.data.activelist | ui.data.ActiveList | Đối tượng ui.data.ActiveList. |
callback | Chức năng | |
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-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eforEach\u003c/code\u003e method iterates through each element of a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor each element, it executes a provided callback function with the element and its index as arguments.\u003c/p\u003e\n"],["\u003cp\u003eThe method is invoked on a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e instance (referred to as 'this' in the context of the callback).\u003c/p\u003e\n"],["\u003cp\u003eIt does not return any specific value (indicated by the empty 'Returns' column).\u003c/p\u003e\n"]]],["The `forEach` method iterates through each element in a `ui.data.ActiveList` instance. For every element, it executes a provided callback function. This callback receives two arguments: the current element and its index. No value is returned by `forEach`. The method requires a callback function as its argument and operates on the `ui.data.ActiveList` instance.\n"],null,["# ui.Map.Linker.forEach\n\n\u003cbr /\u003e\n\nIterates over each element, calling the provided callback. The callback is called for each element like: callback(element, index).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Linker.forEach`(callback)` | |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `callback` | Function | |"]]