express
yang_web
前端开发工程师,不断提高自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
formidable接收图片
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Do原创 2021-06-21 17:54:34 · 231 阅读 · 1 评论 -
nodeJs
nodeJS 一、nodeJS介绍 二、原生nodeJS 1、模块:http,fs,path, 1)、http http.createServer(); 创建服务器的 2)、fs fs.readFile(); 读取文件的 3)、path path.extname(); 获取扩展名 2、对象:req(请求对象),res(响应对象) 1)、req(请求对象) req.url;原创 2021-06-21 17:51:30 · 144 阅读 · 1 评论 -
node中使用Mongodb和Mongoose
在 Express 中利用 Mongoose 操作 Mongodb 安装mongoose (相当于关系数据库中的驱动) npm i mongoose --save 连接数据库 第一个js文件 const mongoose = require('mongoose'); mongoose.connect( 'mongodb://localhost:27017/mydb181101', {useNewUrlParser:true} //使用解析器来解析本次连接 ); mod原创 2021-06-21 14:40:08 · 257 阅读 · 1 评论
分享