Skip to Content
🎲 欢迎使用 RandBox - 功能强大的 JavaScript 随机数据生成库! 了解详情

month

// 用法 randBox.month()

生成一个随机月份。

randBox.month(); => 'January'

默认情况下,只返回完整名称。

可选择指定 raw 来获取包含 name、short_name 和 numeric 的完整月份对象。

randBox.month({raw: true}); => {name: 'October', short_name: 'Oct', numeric: '10'}
最后更新于: