05 2021 档案

摘要:const http = require('http') const https = require('https') const querystring=require('querystring') //url字符串格式化模块 简单的服务器接口示例 const http = require('ht 阅读全文
posted @ 2021-05-27 17:08 终末s 阅读(488) 评论(0) 推荐(0)
摘要:npm -v 查看npm版本 npm version 查看所有模块的版本 npm search 包名 搜索 包 npm install或i 包名 安装 包 npm remove或r 包名 删除 包 npm install 包名 --save 安装包并添加到依赖中,新版nodejs不加--save也会 阅读全文
posted @ 2021-05-25 11:31 终末s 阅读(65) 评论(0) 推荐(0)
摘要:module.js(要暴露的数据) 1、var a='dwadasd' exports.a=a exports.add=function(a ,b){ return a+b } 2、 module.exports={ //效果一样,不能同时使用,如果同时使用module.exports会覆盖expo 阅读全文
posted @ 2021-05-25 09:27 终末s 阅读(82) 评论(0) 推荐(0)