研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >名称 >(构造函数)
Names.(constructor)
构造 Names
类的新实例
Signature:
constructor(reservedWordsList: string, opt_variablePrefix?: string);
参数
参数 |
类型 |
说明 |
reservedWordsList |
字符串 |
以逗号分隔的一串单词,在某种语言中不能用作名称(例如“new,if,this,...”)。 |
opt_variablePrefix |
字符串 |
(可选)部分语言需要“$”符号或命名空间位于所有变量名称(但不包括过程名称)前面。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[null,null,["最后更新时间 (UTC):2024-10-14。"],[[["The `Names` class manages the generation of unique names for variables and procedures within Blockly."],["A new `Names` instance is created using the constructor, requiring a list of reserved words in the target language."],["An optional prefix for variable names can be specified during construction for languages that require them."]]],[]]