blockly > 连接 > getParentAndChildConnections
Connection.getParentAndChildConnections() 方法
根据此连接及其所连接的连接,返回父连接(上级)和子连接(下级)。
Signature:
protected getParentAndChildConnections(): {
parentConnection?: Connection;
childConnection?: Connection;
};
返回:
{ parentConnection?: Connection; childConnection?:连接; }
父级连接和子级连接,前提是已确定了此连接及其所连接的连接。