blockly > 工作區 > getCommentById

Workspace.getCommentById() 方法

找出這個工作區域中具有指定 ID 的留言。

Signature:

getCommentById(id: string): WorkspaceComment | null;

參數

參數 類型 說明
id 字串 要尋找的留言 ID。

退貨:

WorkspaceComment | null

所尋找的留言,如果找不到則傳回 null。