for example, there is a requirement that a person can add multiple internships, and I can click a button on the page to add form, for multiple internships. The content of this form is the same, and so is class. The json format of each form is
{Id: "1", name: "xsx", content: "this is an example"}, which I have obtained.
the format requirements for multiple identical forms (with the same input name value) are
[{Id: "1", name: "xsx", content: "this is an example"}, {Id: "1", name: "xsx", content: "this is an example"}, {Id: "1", name: "xsx", content: "this is an example"},
the problem now is that I use traversal to push each form into an array, but what comes out is {Id: ["1", "2", "3"], name: ["xsx", "sdw", "www"], content: ["this is an example1", "this is an example2", "this is an example3"]}, which is completely wrong.
:
ask for help!