验证电话号码(包括手机,固定电话,带区号,不带区号))
pattern: /(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^[0−9]3,4[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/,
输入框限制只能输入数字
oninput = "this.value=this.value.replace(/[^\d]/g,'')"
pattern: /(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^[0−9]3,4[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/,
oninput = "this.value=this.value.replace(/[^\d]/g,'')"