2019年11月27日
摘要: 界面加载时,动态加载当前时间 setInterval(function () { var date = new Date();//获得当前时间 var yy = date.getFullYear();//年份 var mm = date.getMonth() + 1;//获得月份 mm = (mm 阅读全文
posted @ 2019-11-27 22:14 小乐丶 阅读(2349) 评论(0) 推荐(0) 编辑
摘要: <input onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(t 阅读全文
posted @ 2019-11-27 22:02 小乐丶 阅读(659) 评论(0) 推荐(0) 编辑