blockly > ContextMenu > getCurrentBlock

ContextMenu.getCurrentBlock() 函式

取得目前附加至內容選單的區塊。

Signature:

export declare function getCurrentBlock(): Block | null;

傳回:

區塊 | 空值

內容選單所附加的區塊。