To insert the sorted movie array into the table, you can use the following code:

// Get the table body element
var tableBody = document.getElementById('tb');

// Iterate over the sorted movie array
move1.forEach(function(value, index) {
  // Create a new table row
  var row = document.createElement('tr');

  // Create and append the rank cell
  var rankCell = document.createElement('td');
  rankCell.textContent = index + 1;
  row.appendChild(rankCell);

  // Create and append the movie cell
  var movieCell = document.createElement('td');
  movieCell.textContent = value[0];
  row.appendChild(movieCell);

  // Create and append the box office cell
  var boxOfficeCell = document.createElement('td');
  boxOfficeCell.textContent = value[1];
  row.appendChild(boxOfficeCell);

  // Append the row to the table body
  tableBody.appendChild(row);
});

This code creates a new table row for each movie in the sorted array and adds the rank, movie name, and box office value as cells in the row. The row is then appended to the table body element.

如何将排序后的电影数组插入表格