blockly > 차단 > 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

현재 블록을 둘러싸는 블록 (있는 경우)입니다.