blockly > Block > setPreviousStatement

Block.setPreviousStatement() 方法

设置此分块是否可以链接到其他分块的底部。

Signature:

setPreviousStatement(newBoolean: boolean, opt_check?: string | string[] | null): void;

参数

参数 类型 说明
newBoolean 布尔值 如果可以有前置语句,则为 true。
opt_check string | string[] | null (可选)语句类型或语句类型列表。如果可以连接任何类型,则为 null/undefined。

返回

void