<!--手机号码正则表达式输入框失去焦点验证-->标签:10,onblur,正则表达式,value,输入框,手机号码,reg From: https://blog.51cto.com/u_15920212/5962962
<input
onblur="this.reg=/^1\d{10}$/;/*修改正则表达式即可*/if(!this.reg.test(this.value)){this.value='';this.placeholder='请输入正确的手机号';}">
<!--手机号码正则表达式输入框失去焦点验证-->标签:10,onblur,正则表达式,value,输入框,手机号码,reg From: https://blog.51cto.com/u_15920212/5962962
<input
onblur="this.reg=/^1\d{10}$/;/*修改正则表达式即可*/if(!this.reg.test(this.value)){this.value='';this.placeholder='请输入正确的手机号';}">