the effect you want to achieve is shown in the figure:
layuiJquery
:http://nbdm.net/jquery.html
:
1:1N
:
1name"sight[1][]",2"sight[2][]"
:
2:
:
3:1
:"
1
":
the effect you want to achieve is shown in the figure:
layuiJquery
:http://nbdm.net/jquery.html
:
1:1N
:
1name"sight[1][]",2"sight[2][]"
:
2:
:
3:1
:"
try this:
block the default submission, then use jquery
traversal node to read the data, and combine the data after submission.
Hello, this kind of data usually needs to be submitted to the background in separate tables. I would like to have a rough look and ask me to design at least 3 tables
1. Schedule
2. Daily itinerary
3. Itinerary step table
then the overall data structure is about
//
const DATA = {
//
//
//
//
//...
children: [
//
{
//ID
//
// N
//...
children: [
//
{
//ID
//ID
//....
//
//...
}
]
}
],
};
render the view with a canonical data structure like this, and your problem no longer exists
just provide ideas