文件名称:ts:ts集合
文件大小:2KB
文件格式:ZIP
更新时间:2024-04-19 08:02:15
ts ts集合 enum Direction { UP, DOWN, LEFT, RIGHT } console.log(Direction.UP); console.log(Direction[0]) // UP // 变量提升 const enum const enum Directions { UP, DOWN, LEFT, RIGHT } const avc = Directions.UP type c = 0 declare let b:c b = 1 //error b = Directions.UP //联合枚举类型 enum Direction2 { UP, DOWN, LEFT, RIGHT } declare let aw : Direction2 enum Animal
【文件预览】:
ts-master
----README.md(3KB)