腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
11
回答
body-parser
对
express
做了
什么
?
node.js
、
express
、
body-parser
我不明白为
什么
我们在
Express
应用程序中需要
body-parser
,因为我们可以在不使用
body-parser
的情况下获取数据。它到底
做了
什么
,又是如何做的呢?
浏览 0
提问于2016-07-11
得票数 426
6
回答
ExpressJS错误:Body被弃用
node.js
、
express
、
deprecated
、
body-parser
问题我正在尝试构建一个Node.js API,在编写server.js文件时,我的代码如下所示:var
express
= require('
body-parser
'); app.use(bodyParser.json()); app.l
浏览 9
提问于2015-05-28
得票数 10
12
回答
使用Node.js和
Express
进行POSTing时,如何访问请求体?
javascript
、
node.js
、
express
我有以下Node.js代码:var app =
express
.createServer(
express
.logger()); response.write(request.body.user我试着做response.write(
浏览 65
提问于2012-07-24
得票数 236
回答已采纳
2
回答
nodejs
express
req.body未定义
node.js
、
express
、
undefined
const
express
= require('
express
')const port = 3000 const crypto = require('crypto
浏览 3
提问于2020-03-15
得票数 1
2
回答
Node.js -如何从html发送数据以表示
html
、
node.js
、
forms
、
node.js-client
、
http-post
这是html中的表单示例:<html><meta charset="utf-8" /></head><div id="contact"> <form action="/myaction" method="pos
浏览 1
提问于2013-03-22
得票数 45
回答已采纳
7
回答
bodyParser已弃用
express
4
node.js
、
express
、
middleware
我使用的是
EXPRESS
4.0,我知道主体解析器已经从
express
核心中去掉了,我使用的是推荐的替代品,但是我得到了 我在哪里可以找到这个所谓的中间件?或者我不应该得到这个错误?var
express
= require('
express
');var bodyParser = require('
body-parser
server.use(passport.initialize());
浏览 77
提问于2014-06-20
得票数 645
回答已采纳
1
回答
电源词库-api获取空数组作为输出
jquery
、
node.js
、
thesaurus
我错过了
什么
设置步骤? 我已经
做了
明显的npm安装,但当我尝试一个例子,例如“颈部疼痛”,只得到空数组。帮我解决,谢谢。
浏览 8
提问于2022-08-03
得票数 -1
4
回答
为
什么
对
node.js体解析器的调用失败了,尽管我已经安装了它?
node.js
、
express
、
body-parser
到目前为止,我已经成功地安装了node.js (在Windows7上)和
express
,并且能够让我的第一个脚本工作。然而,当我尝试使用体解析器时,我的问题就出现了。下面是node.js脚本的代码var bodyParser = require('
body-parser
');app.use( bodyParser.json() ); /
浏览 2
提问于2015-08-05
得票数 20
回答已采纳
2
回答
使用Node.js的Ajax请求
javascript
、
ajax
、
node.js
我看到的一种方法是这样的代码:var app =
express
.createServer(); res.send(req.body);我得到了错误: TypeError:
express
.createServerat Func
浏览 0
提问于2016-06-18
得票数 0
2
回答
为
什么
express
-formidable的例子不能在我的代码上工作?
node.js
、
express
、
formidable
我正在尝试使用这个模块: app.use(formidable());为
什么
浏览 3
提问于2016-10-13
得票数 1
3
回答
:函数加载错误:无法加载文件index.js中的代码
firebase
、
deployment
、
google-cloud-firestore
Detailed stack trace: Error: Cannot find module '
express
'const admin = require('firebase-admin'); var
express
= require('
express
'); var bodyParser = require('
b
浏览 2
提问于2018-02-07
得票数 3
回答已采纳
1
回答
Nodejs- Req.body在put with
express
中未定义
reactjs
、
mongodb
、
express
、
axios
发现使用正文解析器可以工作,但在我的例子中,它不能工作,任何重排都不能工作我创建、删除、读取请求都工作得很好,我在put请求中遇到的问题只是我使用的是最新的
express
浏览 0
提问于2020-07-13
得票数 0
4
回答
本地主机未发送任何数据- ERR_EMPTY_RESPONSE
node.js
、
google-chrome
、
express
、
localhost
'''' const
express
= require('
express
');const courses = [{id:
浏览 3
提问于2019-03-28
得票数 5
回答已采纳
1
回答
Node.js
express
- POST请求的主体始终为空
javascript
、
html
、
node.js
、
express
、
post
我正在尝试使用Node.JS框架中的
Express
读取POST请求的正文。我使用HTML表单发送HTTP POST请求。我期望的是JSON格式,这是
Express
为我成功解析的一种格式,但无论我怎么尝试,这种格式似乎都不起作用。我目前的实现是这样的: var
express
= require('
express
');var app =
express
(); var
浏览 18
提问于2020-11-21
得票数 1
回答已采纳
1
回答
使用xmlhttp.send()发送的数据在快捷的POST路由中被附加在哪里?
javascript
、
node.js
、
express
、
xmlhttprequest
console.log(data); ready: f
浏览 0
提问于2016-09-16
得票数 0
2
回答
无法从客户端接收数据ajax通过rest发布请求
javascript
、
jquery
、
node.js
服务器代码:var routes = require('./routes');var http = require('http');//var fn = require('fn') var app =
express
浏览 3
提问于2014-08-21
得票数 1
回答已采纳
3
回答
无法连接到localhost 5000
javascript
、
node.js
、
mongodb
、
mongoose
、
insomnia
当我获得输出服务器运行在端口5000 MongoDB数据库连接上时,代码似乎会执行,但当我尝试从失眠中发送get时,大约需要两分钟才会得到错误:服务器返回任何东西(没有标头,没有数据)//const bodyParser = require('
body-parser
');constmongoose = require('
浏览 0
提问于2019-11-15
得票数 2
1
回答
节点js post request.body未定义
javascript
、
node.js
server.jsvar app =
express
();var session = require('
express
-session');var router = require('./router
浏览 0
提问于2016-05-13
得票数 0
2
回答
Typescript +
Express
:类型'typeof e‘没有兼容的调用签名
node.js
、
typescript
、
express
、
webpack
我正在尝试使用typescript,
express
来构建一个应用程序。我的Package.json: "build": "webpack" "dependencies": { "jsonwebtoken": "^8.3.0", "nodemon": &
浏览 0
提问于2018-11-04
得票数 20
回答已采纳
1
回答
如何从两个录音电话中获得录音ID?
node.js
、
twilio
我的twilio代码是:const VoiceResponse = require('twilio').twiml.VoiceResponse; const PORT = process.env.PORT || 3000; app.get('/health', (req, res) => {
浏览 0
提问于2018-09-13
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
互联网究竟对我们的生活做了什么?
Node实战篇:Express 中间件-body-parser(五)
大前端之路(四)
这家AI企业3年亏10亿美元,谷歌对它做了什么?
如何构建一个简单的Node.js REST API
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券