blockly > WorkspaceSvg > getCommentById

WorkspaceSvg.getCommentById() 方法

傳回具有指定 ID 的工作區留言 (如有)。

Signature:

getCommentById(id: string): RenderedWorkspaceComment | null;

參數

參數 類型 說明
id 字串 要擷取的留言 ID。

傳回:

RenderedWorkspaceComment | null

具有指定 ID 的工作區留言,或空值。