阅读背景:

如何使用node body-parser解析数组值?

来源:互联网 

I have created mongoose schema types array for fields on my form. I use like req.body.fieldName to access the values as a property, but when I do this query for an array, it returns undefined since it is not key value pair. How can I parse it inside my newly created model inside my post route handler? I have created mongoose schema types array for




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: