blockly > 图标 > MutatorIcon > 重新连接
icon.MutatorIcon.reconnect() 方法
请改用 connect.reconnect。将在 v11 中移除。
将指定连接重新连接到指定块上已更改的输入。
Signature:
static reconnect(connectionChild: Connection | null, block: Block, inputName: string): boolean;
参数
参数 | 类型 | 说明 |
---|---|---|
connectionChild | 连接 | null | |
阻挡 | 屏蔽 | |
inputName | string |
返回:
boolean