blockly > VariableMap > getVariableUsesById

VariableMap.getVariableUsesById() 方法

v12:使用 Blockly.Variables.getVariableUsesById。

查找命名变量的所有用法。

Signature:

getVariableUsesById(id: string): Block[];

参数

参数 类型 说明
id 字符串 要查找的变量的 ID。

返回

屏蔽[]

块用法数组。