blockly > BlockSvg > removeInput

BlockSvg.removeInput() 方法

移除這個區塊中的輸入內容。

Signature:

removeInput(name: string, opt_quiet?: boolean): boolean;

參數

參數 類型 說明
名稱 字串 輸入內容的名稱。
opt_quiet boolean (選用) 如果缺少輸入內容,則為 True。

傳回:

boolean

如果作業成功,則為 true;如果輸入內容不存在,則傳回 false,且 opt_quiet 為 true

例外狀況

如果輸入內容不存在,且 opt_quiet 為 true,則 {Error}。