摘要: let xxx = /\d{4}-\d{1,2}-\d{1,2}/g.exec( 输入需要去除时分秒的值 ) 在 input 中 填写 onkeyup="this.value=this.value.replace(/\D/g,'')" xxx <input onkeyup="this.value=t 阅读全文
posted @ 2020-07-15 17:56 虹猫淘气 阅读(435) 评论(0) 推荐(0) 编辑