Edit D:\rfid\apache-tomcat-8.5.32\webapps\opac\js\common.js
/** * ????????? * @param type ?????? * @returns */ function getCurDateYMD(){ 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 currentdate = year +""+ month + "" + strDate; return currentdate; } function formatDigital(value) { if (value < 10) return '0' + value; return value; } function fmtStringToDate(value){ value = value.toString(); if (value != undefined && value.length == 8) return value.substr(0,4) + '-' + value.substr(4, 2) + '-' + value.substr(6, 2); return value; } function fmtStringToTime(value){ value = value.toString(); if(value.length == 5) value="0"+value; if (value != undefined && value.length == 6) return value.substr(0,2) + ':' + value.substr(2, 2) + ':' + value.substr(4, 2); return value; } function fmtStringToPrice(value){ return parseFloat(value).toFixed(2); } function showCurTime() { var now = new Date(); var year = now.getFullYear(); var month = now.getMonth() + 1; var day = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var showTime = year + "??" + formatDigital(month) + "??" + formatDigital(day) + "?? " + formatDigital(hours) + ":" + formatDigital(minutes) + ":" + formatDigital(seconds) + ""; $('.cur-time').html(showTime); //???????????????? var timeID = setTimeout(showCurTime, 1000); } function RndNum(n){ var rnd=""; for(var i=0;i<n;i++) rnd+=Math.floor(Math.random()*10); return rnd; } function onShowDateStamp(value){ if(value){ var newDate = new Date(); newDate.setTime(value); return newDate.getFullYear() + "-" + formatDigital((newDate.getMonth() + 1)) + "-" + formatDigital(newDate.getDate()) + "- " + formatDigital(newDate.getHours()) + ":" + formatDigital(newDate.getMinutes()) + ":" + formatDigital(newDate.getSeconds()); } return value; } function checkMobile(mobile){ var reg = /^1\d{10}$/; if(reg.test(mobile)){ return true; }else{ return false; } } function checkEmail(email){ var reg = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"); if(reg.test(email)){ return true; }else{ return false; } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de