03 2021 档案
摘要:let lastTime = new Date().getTime()let currentTime = new Date().getTime()let timeOut = 30 * 60 * 1000 //设置超时时间: 30分钟window.onload = function () { wind
阅读全文
摘要:const BYTE = 1024, ACCEPT = { image: 'image/jpeg,image/bmp,image/png,image/gif', }, getAccepts = accept => (Array.isArray(accept) ? accept : [accept])
阅读全文
摘要:Math.ceil():表示向上取整;Math.ceil(11.3)=12;Math.ceil(-11.3)=-12。 Math.floor():表示向下取整;Math.floor(11.6)=11;Math.floor(-11.6)=-12。 Math.round():表示四舍五入;Math.ro
阅读全文