blockly > BlockSvg > setNextStatement
BlockSvg.setNextStatement() 方法
设置是否可以将另一个方块连结到此方块的底部。
Signature:
setNextStatement(newBoolean: boolean, opt_check?: string | string[] | null): void;
参数
参数 | 类型 | 说明 |
---|---|---|
newBoolean | boolean | 如果可以下一个语句,则为 true。 |
opt_check | 字符串 | 字符串 [] | null | (可选)语句类型或语句类型列表。如果可以连接任何类型,则为 null/undefined。 |
返回:
void