hehe1111 / hehe1111.github.io Goto Github PK
View Code? Open in Web Editor NEWhttps://hehe1111.github.io/
https://hehe1111.github.io/
express.xxx
内置中间件app.xxx
应用设置(如:挂载路由处理 HTTP 请求、配置中间件、注册模板引擎、渲染视图等)request.xxx
操作请求response.xxx
操作响应router.xxx
操作路由express()
起一个主应用或者子应用
express
.json([options])
请求第四部分 -> body
JSON 对象.urlencoded([options])
请求第四部分 -> body
JSON 对象.raw([options])
请求第四部分 -> body
Buffer 对象.text([options])
请求第四部分 -> body
字符串.Router([options])
可用于实现嵌套路由.static(root, [options])
起一个静态资源服务器app.use([path,] callback [, callback...])
app.get('xxx', (requset, response) => {/* 函数内 */})
。app
对象在函数内可以通过 request.app
和 response.app
来获取app.get()
处理请求
处理响应
可以认为是一个简化版的 Express 应用
开始 -> f1 -> f2 -> f3 -> ... -> f(last) -> 结束
开始 -> f1 -> f2 -> f3 -> ...-> f(last) -> ... -> f3 -> f2 -> f1 -> 结束
next()
generator
async/await
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.