我在我的应用程序中使用 express 和 body-parser。
app.use(bodyParser.urlencoded({ extended: false }));
但是,express 4.0 中的“扩展”是什么意思?
我找到了这个
extended - parse extended syntax with the qs module.
但是,我仍然无法理解它的含义。
最佳答案
如果extended
为false
,则不能发布“嵌套对象”
person[name] = 'cw'
// Nested Object = { person: { name: cw } }
如果extended
是true
,你可以做任何你喜欢的方式。
关于node.js - express 4.0 中的 'extended' 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29960764/