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

exp

// 使用方法 randBox.exp() randBox.exp({raw: true})

生成一个随机的信用卡到期日期。

randBox.exp(); => '10/2020'

可以可选地指定返回原始对象而不是字符串

randBox.exp({raw: true}); => {month: '11', year: '2017'}
最后更新于: