#jS实现流水号
根据当前时间获取
function randomNumber() {
var now = new Date();
var year = now.getFullYear().toString();
var month = now.getMonth() + 1;
var day = now.getDate();
var hour = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var no = year+month+day+hour+minutes+seconds;
return no;
}
window.onload = function () {
document.getElementById("checkid").value = randomNumber();
}