摘要: [ 基础用法 ] 声明数据类型 和 方法断言 let str: string = 'hello world' console.log(str) const arr: number[] = [1, 2, 3] const result = arr.find(i => i > 2) as number 阅读全文
posted @ 2024-04-19 19:17 anch 阅读(1) 评论(0) 推荐(0) 编辑
摘要: [ Ts + express + vscode ] 安装环境依赖 // 开发依赖 npm i -D typescript ts-node nodemon @types/express @types/node // 生产依赖 npm i express 初始化 Ts 配置文件 // 该操作会创建tsc 阅读全文
posted @ 2024-04-19 17:26 anch 阅读(42) 评论(0) 推荐(0) 编辑