function Data()
        {
            var date = new Date();
            var year = date.getFullYear();
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            if (month >= 1 && month <= 9) {
                month = "0" + month;
            }
            if (strDate >= 0 && strDate <= 9) {
                strDate = "0" + strDate;
            }
            var newRandom = "";
            for(var i=0;i<5;i++)
            {
                newRandom += Math.floor(Math.random()*9 + 1).toString();
            }
            var currentdate =  year + month + strDate + newRandom;
            return currentdate;
        }

 

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2021-12-17
  • 2022-03-04
  • 2022-12-23
  • 2021-10-09
  • 2021-06-08
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案