gpt4 book ai didi

javascript - Nodejs : get the name and value of Object passing from frontend

转载 作者:行者123 更新时间:2023-12-01 01:16:42 24 4
gpt4 key购买 nike

我正在使用nodejs开发微服务

请求遵循JSON

{
"distCd": "abcd",
"distName": "parentLife Distributor (TOD)",
"stateCd": "",
"subdistInd": false,
"maindistInd": true,
"maindistCd": "",
"distOpendt": "2018-08-28T17:36:02Z",
"pricegrpCd": "01",
"costPricegrpCd": "",
"rssInd": false,
"branchInd": false,
"taxregionCd": "",
"octroiInd": false
}

如何获取“distCd”等名称和“abcd”值

最佳答案

您可以使用Object.keys()Object.values() ,或者只是Object.entries() .

关于javascript - Nodejs : get the name and value of Object passing from frontend,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54684600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com