1.0.2 • Published 4 years ago
lk-utils v1.0.2
lk-utils
工具包
// 获取明日凌晨的时间戳
tomorrowZeroDate() // 获取second秒之后的时间戳
nowSecondsLater(second)/*
* 通过传入唯一的key判断今天是否可以调用该方法,
* 如果可以调用返回true,如果传入callback则会执行callback方法,
* 如果不可以调用返回false,不调用callback方法
* */
allowCallMeToday(key, callback)encodeBase64()decodeBase64()