摘要: 模块 允许代码分离,将其组织为可维护的单元,提升代码的可复用性和可读性; CommonJS(CJS)、ECMAScript Modules(ESM) CJS模块系统 导出模块 只需要使用module.exports或exports将模块中的内容导出即可 module.exports, // 指定属性 阅读全文
posted @ 2024-07-16 22:47 安静的嘶吼 阅读(3) 评论(0) 推荐(0) 编辑
摘要: npm (1)npm镜像源配置 npm默认的镜像地址是:https://registry.npmjs.org 淘宝开源的镜像站:https://registry.npmmirror.com/ 查看当前的镜像源:npm config get registry 设置为淘宝镜像源:npm config s 阅读全文
posted @ 2024-07-16 20:35 安静的嘶吼 阅读(31) 评论(0) 推荐(0) 编辑