blockly > Block > getSurroundParent
Block.getSurroundParent() 方法
Return the parent block that surrounds the current block, or null if this block has no surrounding block. 父代码块可能只是前一个语句,而周围的语句是 if 语句、while 循环等。
Signature:
getSurroundParent(): this | null;
返回:
此 | null
围绕当前块的块(如果有)。