blockly > Block > getSurroundParent
Block.getSurroundParent() 方法
Return the parent block that surrounds the current block, or null if this block has no surrounding block. 父項區塊可能只是上一個陳述式,而周圍區塊則是 if 陳述式、迴圈等等。
Signature:
getSurroundParent(): this | null;
傳回:
這個 | 空值
圍繞目前區塊的方塊 (如有)。