The functions are as follows:
1. Sorting function: Click the row header or column header to sort in positive order; click again to sort in reverse order;
2. Modify function: Double-click a cell to sort Perform input operations, and when the input box loses focus, the new data is saved;
3. Random function: every time the page is refreshed, the data in the table is different;
Rendering:
The complete source code is as follows: