🌈 搜索
📅  最后修改于: 2022-03-11 15:03:46.452000             🧑  作者: Mango
function centuryFromYear(year) { var x = Math.floor(year / 100); if (year % 100 === 0) return x; else return x + 1; }