Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
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.
chặn > chuyển đổi tuần tự > workspaceComments > WorkspaceCommentSerializer > lưu
Trả về trạng thái của tất cả nhận xét trong không gian làm việc trong không gian làm việc nhất định.
Chữ ký:
save(workspace: Workspace): State[] | null;
Tham số
Trường hợp trả lại hàng:
Tiểu bang[] | rỗ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-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["The `save` method, part of the `WorkspaceCommentSerializer` class within Blockly's serialization functionality, extracts the state of all workspace comments associated with a given workspace."],["It takes a `Workspace` object as input to identify the specific workspace for comment extraction."],["The output is either an array of `State` objects, each representing the serialized data of a workspace comment, or `null` if no comments are found."]]],["The `save()` method, part of the `WorkspaceCommentSerializer` class, retrieves and returns the state of all workspace comments within a specified workspace. It accepts a `Workspace` object as a parameter. The method's return value is either an array of `State` objects, representing the saved state of each comment, or `null` if there are no comments.\n"]]