element中的this.$prompt
事件如何做手机号码验证,下面web建站小编给大家简单介绍一下具体实现代码!
editPhone() { this.$prompt('您确定要修改当前手机号码', '温馨提示', { confirmButtonText: '确定', cancelButtonText: '取消', inputPattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, inputValidator: (val) => { if (val === null) { return true } return !(val.length > 11 || val.length < 11) }, inputErrorMessage: '格式不正确' }).then(({ value }) => { this.rowCurr.patientPhone = value }).catch(() => { this.$message({ type: 'info', message: '取消输入' }) }) },
标签: this.$prompt, 手机号码验证
上面是“this.$prompt如何做手机号码验证(判断手机号码是否正确)”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4464.html
workflows工作流
一个男孩在吃西瓜ComfyUI工作流
在白雪覆盖的广阔平原上两只可爱的小猫
一只可爱的草莓味冰淇淋卷筒
一匹热血沸腾的汗血宝马庄严地站立着ComfyUI工作流
一只可爱的毛茸茸的猫ComfyUI工作流
一个20岁丰满的女孩ComfyUI工作流
一位老人安详地坐在云层中钓鱼
一个黑人在森林中穿着折纸的衣服ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!