摘要:
API Application Programming Interface: a piece of software that can be used by another piece of software, in order to allow application to talk to eac 阅读全文
posted @ 2022-06-22 01:16
kihyun
阅读(39)
评论(0)
推荐(0)
摘要:
设置ESLint 安装组件 npm i eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb eslint-plugin-node eslint-plugin-import eslint- 阅读全文
posted @ 2022-06-22 01:12
kihyun
阅读(81)
评论(0)
推荐(0)
摘要:
中间件 在node执行的过程中,在请求和应答的中间会有很多中间处理不同东西的组件,这样的组件叫做中间件。中间件的执行过程是:请求发送-第一个中间件接收-第一个中间件应答-第一个中间件请求-第二个中间件接收-第二个中间件应答-第二个中间件请求-最终应答。 具体使用: app.use((req, res 阅读全文
posted @ 2022-06-22 01:10
kihyun
阅读(52)
评论(0)
推荐(0)
摘要:
建立server 创建express对象 const express = require('express'); const app = express(); 监听端口 const port = 3000; app.listen(port, () => { console.log(`App runn 阅读全文
posted @ 2022-06-22 01:06
kihyun
阅读(115)
评论(0)
推荐(0)