fill().map()

const hours = new Array(24).fill('').map((_, index) => +index + 1)
        return hours.slice(startHour)
posted @ 2022-08-30 22:05  zongkm  阅读(14)  评论(0)    收藏  举报