研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >VariableMap
VariableMap 类
用于变量映射的类。此文件包含一个字典数据结构,其中变量类型作为键,变量列表作为值。变量列表是键所指示的类型。
Signature:
export declare class VariableMap
构造函数
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["The `VariableMap` class manages variables within a Blockly workspace, storing them in a dictionary-like structure organized by type."],["It provides methods for creating, deleting, renaming, and retrieving variables, as well as for finding their uses within the workspace."],["`VariableMap` also allows clearing all variables and obtaining lists of variables based on type or name."],["Each variable is associated with a name, type, and unique ID, which are used for identification and management purposes."]]],[]]