Skip to content

ConstantsMap ​

ConstantsMap类包含全局参数列表。

public get (name: string) ​

简介 ​

获取指定名称的参数

参数 ​
  1. name: string 参数名称
示例 ​
js
const length = constants.get('length')