📅  最后修改于: 2022-03-11 15:04:22.188000             🧑  作者: Mango
var list = document.getElementById('list');
[...list.children]
.sort( (a, b) => a.getAttribute('data-date') - b.getAttribute('data-date'))
.forEach( node => list.appendChild(node));