vue前端加手机和固话的正则表达式
作者:互联网
<el-form-item label="联系人" prop="conman" class="small">
<el-input v-model="formData.conman" placeholder="请输入联系人"/>
</el-form-item>
conphono: [{
pattern: /(^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\d{8}$|^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\d{8}$|^0\d{2,3}-?\d{7,8}$)|(^([0-9]{3,4}-)?[0-9]{7,8}$)|(^([0-9]{3,4})?[0-9]{7,8}$)/,
message: "请输入正确的联系方式",
trigger: ["blur", "change"]
}],
标签:13,vue,15,14,正则表达式,18,固话,pattern 来源: https://blog.csdn.net/weixin_44061536/article/details/110849800