There are three ways to create Enums. By passing Strings, an Array or an Object. It's recommended to use uppercase for both the Enum name and values, using underscores got gaps. As you can see, strict ...
构建Enum对象在JavaScript中使用,可用于枚举定义,前端组件单选、多选等的options选项的定义。