blockly > RenderedConnection > setCheck
RenderedConnection.setCheck() 方法
更改连接的兼容性。根据需要重新渲染块。
Signature:
setCheck(check: string | string[] | null): RenderedConnection;
参数
参数 | 类型 | 说明 |
---|---|---|
check | 字符串 | 字符串 [] | null | 兼容的值类型或值类型列表。如果所有类型都兼容,则为 null。 |
返回:
要修改的连接(以允许链接)。