摘要:
function countDown (time) { var now = +new Date() //返回的是当前的总毫秒数 var inputTime = new Date(time) //返回的是用户输入的总毫秒数 var times = (inputTime - now) / 1000 // 阅读全文
posted @ 2022-05-08 16:05
减淡
阅读(40)
评论(0)
推荐(0)
摘要:
function getDate () { var time = new Date() var h = time.getHours() h = h<10 ? '0' + h : h var m = time.getMinutes() m = m<10 ? '0' + m : m var s = ti 阅读全文
posted @ 2022-05-08 15:22
减淡
阅读(46)
评论(0)
推荐(0)
摘要:
得到两个数之间的随机整数包括两个数在内 function getRandomIntInclusive(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - m 阅读全文
posted @ 2022-05-08 11:52
减淡
阅读(74)
评论(0)
推荐(0)
浙公网安备 33010602011771号