ui.data.ActiveList.length
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.
Trả về số lượng phần tử trong danh sách.
Cách sử dụng | Giá trị trả về |
---|
ActiveList.length() | Số |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.data.activelist | ui.data.ActiveList | Đối tượng ui.data.ActiveList. |
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\u003eReturns the number of elements in the ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called using \u003ccode\u003eActiveList.length()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt takes one argument: the ui.data.ActiveList instance.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the element count as a Number.\u003c/p\u003e\n"]]],["The `ActiveList.length()` method returns the number of elements within an `ui.data.ActiveList` instance. It takes no arguments, and the `this` context is the `ui.data.ActiveList` itself. The method's sole purpose is to provide a numerical count of the elements contained within the specified ActiveList, returning a Number data type.\n"],null,["# ui.data.ActiveList.length\n\n\u003cbr /\u003e\n\nReturns the number of elements in the list.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------|---------|\n| ActiveList.length`()` | Number |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |"]]