假设我们要对下表的任何列进行排序: <table id="sortMe" class="table"> ... </table> 对行进行排序 首先,我们查询所有的标头,遍历它们并为每个标头附加一个事件处理程序click: // Query the table const table = document.getElementById('sortMe'); // Qu