随笔分类 -  node

摘要:const fs = require('fs'); const path = require('path'); class File { constructor(fileName, name, ext, isFile, size, createTime, updateTime) { this.fil 阅读全文
posted @ 2024-05-10 13:12 HuangBingQuan 阅读(37) 评论(0) 推荐(0)
摘要:前言:为了更好的代码提示,我们可以使用ts的@types/node包来增强代码提示 yarn add @types/node -D || npm i @types/node -D || pnpm i @types/node -D 在浏览器 JavaScript 中全局对象是 window, 而 No 阅读全文
posted @ 2024-04-10 13:23 HuangBingQuan 阅读(25) 评论(0) 推荐(0)