blockly > 工作區 > getCommentById
Workspace.getCommentById() 方法
找出這個工作區域中具有指定 ID 的留言。
Signature:
getCommentById(id: string): WorkspaceComment | null;
參數
參數 | 類型 | 說明 |
---|---|---|
id | 字串 | 要尋找的留言 ID。 |
退貨:
WorkspaceComment | null
所尋找的留言,如果找不到則傳回 null。
blockly > 工作區 > getCommentById
找出這個工作區域中具有指定 ID 的留言。
Signature:
getCommentById(id: string): WorkspaceComment | null;
參數 | 類型 | 說明 |
---|---|---|
id | 字串 | 要尋找的留言 ID。 |
退貨:
WorkspaceComment | null
所尋找的留言,如果找不到則傳回 null。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。