blockly > Block > removeInput
Block.removeInput() 方法
从此代码块中移除输入。
Signature:
removeInput(name: string, opt_quiet?: boolean): boolean;
参数
参数 | 类型 | 说明 |
---|---|---|
name | string | 输入的名称。 |
opt_quiet | boolean | (可选)True,以防止在不存在输入时发生错误。 |
返回:
boolean
如果操作成功,则为 true;如果输入不存在,则为 false,且 opt_quiet 为 true。
异常
如果输入不存在且 opt_quiet 不为 true,则会发生{错误}。