摘要: demo.ts // DataHelpler 类 用于操作localStorage class DataHelpler { dataKey: string; //localstorage key primaryKey: string; // id constructor(dataKey: strin 阅读全文
posted @ 2020-03-24 21:29 学习。。。 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一,环境 1 新增的数据类型和部分语法,没有办法在浏览器和node 中执行,需要安装typescript 环境 安装:npm i -g typescript 成功:tsc -v 2 在浏览器中使用ts tsc xxx.ts 执行后会生成.js 文件 tsc 无法加载文件 (1)以管理员身份运行vsc 阅读全文
posted @ 2020-03-24 17:15 学习。。。 阅读(186) 评论(0) 推荐(0) 编辑
摘要: multer 模块 github:https://github.com/fanlina157/nodePro npm i multer fileRouter.js var express = require('express') var router = express.Router() // 图片 阅读全文
posted @ 2020-03-24 09:56 学习。。。 阅读(194) 评论(0) 推荐(0) 编辑