2018年8月28日

TypeScript 之 函数

摘要: https://m.runoob.com/manual/gitbook/TypeScript/_book/doc/handbook/Functions.html 为函数定义类型 为函数添加类型: TypeScript能够根据返回语句自动推断出返回值类型,因此我们通常省略它。 TypeScript中, 阅读全文

posted @ 2018-08-28 19:06 cag2050 阅读(111) 评论(0) 推荐(0) 编辑

TypeScript 之 基础类型、高级类型

摘要: 基础类型:https://m.runoob.com/manual/gitbook/TypeScript/_book/doc/handbook/Basic%20Types.html 高级类型:https://m.runoob.com/manual/gitbook/TypeScript/_book/do 阅读全文

posted @ 2018-08-28 11:55 cag2050 阅读(256) 评论(0) 推荐(0) 编辑

TypeScript 之 三斜线指令

摘要: https://m.runoob.com/manual/gitbook/TypeScript/_book/doc/handbook/Triple Slash%20Directives.html 一个三斜线引用路径是相对于包含它的文件的,如果不是根文件。 三斜线指令 : 用于声明文件间的依赖,告诉编译 阅读全文

posted @ 2018-08-28 11:18 cag2050 阅读(1210) 评论(0) 推荐(1) 编辑

TypeScript 与 es6 写法的区别

摘要: import 方式 ts 默认对于 commonjs 的模块是这样加载的: es6: 不想改变 es6 的写法,可以使用 ts 提供的一个编译参数 : 阅读全文

posted @ 2018-08-28 11:07 cag2050 阅读(834) 评论(0) 推荐(0) 编辑

TypeScript 之 模块

摘要: https://m.runoob.com/manual/gitbook/TypeScript/_book/doc/handbook/Modules.html 外部模块简写 外部模块简写: 的含义: 告诉编译器,以 结尾的模块存在、且导出的值的类型为 。 阅读全文

posted @ 2018-08-28 10:40 cag2050 阅读(194) 评论(0) 推荐(0) 编辑

导航