Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangMonday authored Dec 13, 2024
1 parent 4675f2f commit 1f69817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ <h5>更新日志</h5>

// 计算总分名次变化
validStudents.forEach(s => {

console.log(`学生: ${s.name} 上次总成绩: ${s.lastTotal}, 当前总成绩: ${s.currentTotal}`);

if (s.lastTotal !== null) {
// 根据上次总成绩进行排名计算
const lastTotalSorted = [...validStudents].sort((a, b) => b.lastTotal - a.lastTotal);
Expand Down

0 comments on commit 1f69817

Please sign in to comment.