怎么将两层嵌套的数组转成json发给后台

发布于 8 年前作者 rhou7725 次浏览最后编辑 8 年前来自 ask

[{

nickName: e.detail.userInfo.nickName

},

{

gender: e.detail.userInfo.gender

},

{

city: e.detail.userInfo.city

},

{

province: e.detail.userInfo.province

},

{

country: e.detail.userInfo.country

},

{

avatarUrl: e.detail.userInfo.avatarUrl

},

]

1 回复
dumin
dumin1 楼6 年前

直接传这个对象不行吗?JSON.stringify([xxxxxxx])。