express req_了解Express.js中的req对象

express req

Express.js is the most popular server framework because it provides a developer-friendly abstraction of the core http module in Node.js. It’s like using jQuery instead of document.querySelectorAll because it lets you, the developer, be way more productive!

Express.js是最受欢迎的服务器框架,因为它为Node.js中的核心http模块提供了开发人员友好的抽象。 这就像使用jQuery而不是document.querySelectorAll因为它使您(开发人员)更加高效!

The req object in Express.js allows you to examine every aspect about the request that the client made (whether by browser, by cURL, or mobile browser, etc.). This encompasses lots of things like the URL, user agent string, JSON data, form data… A lot! In this post you’ll learn the basics about the req object in Express.js.

Express.js中的req对象使您可以检查有关客户端发出的请求的各个方面(无论是通过浏览器,通过cURL还是通过移动浏览器等)。 其中包含许多内容,例如URL,用户代理字符串,JSON数据,表单数据……很多! 在本文中,您将学习Express.js中有关req对象的基础知识。

This article isn’t covering req in exhaustive detail, but instead provides an overview of the most popular aspects of req. And you can read this post to learn about the response (res) object.

本文并未详尽介绍req ,而是提供了req最受欢迎方面的概述。 您可以阅读这篇文章,以了解响应( res )对象。

To view comprehensive docs for the req object, visit the

你可能感兴趣的:(javascript,java,nodejs,ajax,js,ViewUI)