1234567891011121314 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- // ts => typeScript 是js的超集
- // ts => js 浏览器识别
- var a = 12;
- // js 数据 决定 类型 弱语言类型
- // ts 类型 决定 数据 强语言类型
- // 安装ts:npm install typescript -g
- // 检查:tsc -v
- // 创建ts文件:名字(英文/数字).ts
- console.log(a, 'a');
- // 抛出
- // export default {xxx}
- // export const xxx
|