express 4.0 中的“扩展"是什么意思? [英] What does 'extended' mean in express 4.0?

查看:28
本文介绍了express 4.0 中的“扩展"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用中使用 express 和 body-parser.

I'm using express and also body-parser in my app.

app.use(bodyParser.urlencoded({ extended: false }));

但是,express 4.0 中的扩展"是什么意思?

But, What does 'extended' mean in express 4.0?

我发现了这个

extended - parse extended syntax with the qs module.

然而,我仍然无法理解这意味着什么.

However, I still can't understrand what it means.

推荐答案

如果extendedfalse,则不能发布嵌套对象"

If extended is false, you can not post "nested object"

person[name] = 'cw'

// Nested Object = { person: { name: cw } }

如果extendedtrue,你可以做任何你喜欢的事情.

If extended is true, you can do whatever way that you like.

这篇关于express 4.0 中的“扩展"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆