index.js 295 字节 原文件 审查 历史 永久链接 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 export default (function (o, c) { var proto = c.prototype; proto.isoWeeksInYear = function () { var isLeapYear = this.isLeapYear(); var last = this.endOf('y'); var day = last.day(); if (day === 4 || isLeapYear && day === 5) { return 53; } return 52; }; });