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
chặn > Sự kiện > CommentBase > (hàm khởi tạo)
Tạo một thực thể mới của lớp CommentBase
Chữ ký:
constructor(opt_comment?: WorkspaceComment);
Tham số
Thông số |
Loại |
Mô tả |
opt_comment |
WorkspaceComment |
(Không bắt buộc) Nhận xét tương ứng với sự kiện này. Không được xác định cho sự kiện trố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: 2024-08-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-22 UTC."],[[["The `CommentBase` class constructor creates a new instance of the class, representing an event related to a workspace comment."],["It optionally takes a `WorkspaceComment` object as input, specifying the comment the event is associated with."]]],["The `CommentBase` class constructor creates a new instance, optionally accepting a `WorkspaceComment` object as a parameter. This parameter represents the comment the event is associated with. If no comment is provided, the event is considered blank. The constructor's signature is `constructor(opt_comment?: WorkspaceComment)`.\n"]]