Home > Article > Backend Development > javascript - js How to add a row of data to another div according to the add button, and also make the position style consistent with the sorting style of the list on another page
How can js add a row of data (including title, author, time, etc.) to another div according to the add button, and the position style should be unified with the sorting style of another page list, which is similar to the picture below, click to add to On the second picture
How can js add a row of data (including title, author, time, etc.) to another div according to the add button, and the position style should be unified with the sorting style of another page list, which is similar to the picture below, click to add to On the second picture
clone past
According to clicking on the index of a certain row of records, this data is found in the data collection. If a table is used, the callback method should have rowData parameters. After getting the data, render the div that needs to add additional elements based on the data