blockly > ConnectionDB > removeConnection
ConnectionDB.removeConnection() 方法
从数据库中移除连接。数据库中必须已存在。
Signature:
removeConnection(connection: RenderedConnection, yPos: number): void;
参数
参数 | 类型 | 说明 |
---|---|---|
连接 | RenderedConnection | 要移除的连接。 |
yPos | number | 用于查找连接索引的 y 位置。 |
返回:
void
异常
如果无法在数据库中找到连接,则会发生{错误}。