你好,我有一个HTML表单,使用react form action using form data.
当从我的方法中提取formData时,它的显示如下:
我试图实现的目标或我的期望是,我将获得一个对象数组:
"completeSuccessIndicators": [
{
"si": 1,
"actual_accomplishment": "this the acutal accomplishmentsasdfasdfas",
"ql_qn": 1,
"timeliness": 3,
"average": 3,
"remarks": "asdfasdf"
},
{
"si": 2,
"actual_accomplishment": "this the acutal 2222123123s",
"ql_qn": 1,
"timeliness": 3,
"average": 3,
"remarks": "another remarks"
}
]
它会像PHP或Ruby on rails那样自动运行吗?或者有没有我可以用的套餐?到目前为止,我正在考虑创建一种逻辑来解析表单数据.
PS:我在react项目中使用nextjs.