星期年
WeekYear 添加了 .weekYear()
API 来获取区域感知的年份周。
var weekYear = require('dayjs/plugin/weekYear') // dependent on weekOfYear plugin
var weekOfYear = require('dayjs/plugin/weekOfYear')
dayjs.extend(weekOfYear)
dayjs.extend(weekYear)
dayjs().weekYear()
WeekYear 添加了 .weekYear()
API 来获取区域感知的年份周。
var weekYear = require('dayjs/plugin/weekYear') // dependent on weekOfYear plugin
var weekOfYear = require('dayjs/plugin/weekOfYear')
dayjs.extend(weekOfYear)
dayjs.extend(weekYear)
dayjs().weekYear()