What does 'extended' mean in express 4.0?

后端 未结 3 2034
有刺的猬
有刺的猬 2020-11-28 02:57

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

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

But, What does \'extended\' mean in

3条回答
  •  孤独总比滥情好
    2020-11-28 03:33

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

    person[name] = 'cw'
    
    // Nested Object = { person: { name: cw } }
    

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

提交回复
热议问题