blockly >FieldVariable >getText

FieldVariable.getText() 方法

从此字段获取文本,即所选变量的名称。

Signature:

getText(): string;

返回

字符串

所选变量的名称,如果未选择变量,则为空字符串。