blockly > 名称 > (构造函数)

Names.(constructor)

构造 Names 类的新实例

Signature:

constructor(reservedWordsList: string, opt_variablePrefix?: string);

参数

参数 类型 说明
reservedWordsList string 禁止在某种语言中用作名称的一串字词(例如“new,if,this,...”)。
opt_variablePrefix string (可选)某些语言的所有变量名称前都需要添加“$”或命名空间(但不需要过程名称)。