zheng 3 hours ago
parent
commit
c6654c4c8a
4 changed files with 34 additions and 0 deletions
  1. BIN
      .DS_Store
  2. 16 0
      15.ts/1.初始/1.js
  3. 18 0
      15.ts/1.初始/1.ts
  4. 0 0
      15.ts/1.初始/index.html

BIN
.DS_Store


+ 16 - 0
15.ts/1.初始/1.js

@@ -0,0 +1,16 @@
+"use strict";
+/**
+ * ts => typeScript 是js的超集
+ * 类型 决定 数据
+ * 强语言类型
+ * 安装:
+ * npm install -g typescript
+ * yarn add xxx
+ * 检查版本 tsc -v
+ * 编译:tsc 文件名
+ */
+// let a = 12; // 数据 决定 类型 => 弱语言类型
+Object.defineProperty(exports, "__esModule", { value: true });
+// ts在声明的时候 会自动进行类型的校验
+var b = 30;
+b = 10;

+ 18 - 0
15.ts/1.初始/1.ts

@@ -0,0 +1,18 @@
+/**
+ * ts => typeScript 是js的超集
+ * 类型 决定 数据
+ * 强语言类型
+ * 安装:
+ * npm install -g typescript
+ * yarn add xxx
+ * 检查版本 tsc -v
+ * 编译:tsc 文件名
+ */
+// let a = 12; // 数据 决定 类型 => 弱语言类型
+
+// ts在声明的时候 会自动进行类型的校验
+let b = 30;
+
+b = 10;
+
+export { }

+ 0 - 0
15.ts/1.初始/index.html