一、Typescript常用的数据类型 布尔类型(boolean)、数字类型(number)、字符串类型(string)、数组类型(array)、元组类型(tuple)、枚举...

IP属地:贵州
一、Typescript常用的数据类型 布尔类型(boolean)、数字类型(number)、字符串类型(string)、数组类型(array)、元组类型(tuple)、枚举...
1、箭头函数是匿名函数,不能作为构造函数,不能使用new。 leta=()=>{console.log(111)} a() letfn=newa() //报错: Uncaug...
1、在终端打开项目 ts 目录 2、使用 tsc -- init 生成 tsconfig.json 配置文件 3、找到outDir 配置 生成 编译文件的目录,列如 我的是生...