blockly > Connection > getParentAndChildConnections

Connection.getParentAndChildConnections() 方法

根據此連線及其所連接的連線,傳回父項連線 (上層) 和子項連線 (較低者)。

Signature:

protected getParentAndChildConnections(): {
        parentConnection?: Connection;
        childConnection?: Connection;
    };

傳回:

{ parentConnection?: Connection;ChildConnection?:連線;}

根據這個連線和其連線,父項連線和子項連線。