blockly > VariableMap > getVariableUsesById

VariableMap.getVariableUsesById() 方法

v12:使用 Blockly.Variables.getVariableUsesById。

找出已命名變數的所有用途。

Signature:

getVariableUsesById(id: string): Block[];

參數

參數 類型 說明
id 字串 要尋找的變數 ID。

退貨:

區塊[]

區塊用法的陣列。