Files
expressjs.com/zh-cn/index.md
github-actions[bot] f31a7d4057 i18n: new crowdin translations (#2153)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-01-13 20:18:42 -05:00

2.0 KiB
Raw Permalink Blame History

layout, title, description, menu, redirect_from
layout title description menu redirect_from
home Express - Node.js web 应用框架 Express 是 Node.js 的一个快速、灵活、极简的Web框架为网页和移动应用提供了一套强大的功能特性。 home

快速、灵活、极简的 Node.js Web 框架

$ npm install express --save
const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
  res.send('Hello World!')
})

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})

{% if site.announcement %}

{% include announcement.html %}
{% endif %}

Web 应用开发

Express 是一个简洁灵活的 Node.js Web 应用框架,为网页和移动应用提供了一套强大的功能特性。

API 开发

借助丰富的 HTTP 工具方法和中间件支持,快速构建健壮的 API 接口易如反掌。

性能表现

Express 提供基础的 Web 应用功能薄层封装,绝不遮蔽您熟悉且喜爱的原生 Node.js 特性。

中间件

Express是一个轻量和灵活的路由框架核心功能最小 将通过使用Express 中间件 模块来增加。