摘要: req是客户端的请求 res是服务端的响应!!!理解清楚不要搞混了 服务端 const express = require('express'); const path = require('path'); const app = express(); app.use(express.static( 阅读全文
posted @ 2021-12-17 20:01 ๑Secret 阅读(73) 评论(0) 推荐(0)
摘要: 弃用 阅读全文
posted @ 2021-12-15 16:35 ๑Secret 阅读(33) 评论(0) 推荐(0)
摘要: 简介:Mongoose是在node.js异步环境下对mongodb进行便捷操作的对象模型工具 安装:npm install mongoose --save-dev 1.connect用于数据库的链接 var mongoose = require('mongoose'), DB_URL = 'mong 阅读全文
posted @ 2021-12-15 14:01 ๑Secret 阅读(249) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-15 13:59 ๑Secret 阅读(21) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-15 13:58 ๑Secret 阅读(24) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-14 01:43 ๑Secret 阅读(31) 评论(0) 推荐(0)
摘要: 结果[a,b] 阅读全文
posted @ 2021-12-14 00:45 ๑Secret 阅读(10) 评论(0) 推荐(0)
摘要: 输出结果是100 因为创建对象时候 里面的方法并不能参数作用域! 所以this指向window 阅读全文
posted @ 2021-12-13 23:43 ๑Secret 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-13 22:43 ๑Secret 阅读(39) 评论(0) 推荐(0)
摘要: 每次循环都会产生一个块级作用域 (就是大括号) 阅读全文
posted @ 2021-12-13 22:37 ๑Secret 阅读(34) 评论(0) 推荐(0)