代码
提交代码
enum Calculate { a, b, expired = 60 * 60 * 24, length = 'imooc'.length, plus = 'hello ' + 'world' } console.log(Calculate.expired) // 86400 console.log(Calculate.length) // 5 console.log(Calculate.plus) // hello world
运行结果