blockly > Connection > disconnectInternal
Connection.disconnectInternal() 方法
將透過這個連線連線的兩個區塊中斷連線。
Signature:
protected disconnectInternal(setParent?: boolean): void;
參數
參數 | 類型 | 說明 |
---|---|---|
setParent | boolean | (選用) 是否要設定連線封鎖的父項,預設為 true。如果不設定父項,請確保後續操作,否則檢視畫面和模型會不同步。 |
傳回:
void