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如何做手机号码验证(判断手机号码是否正确)”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4464.html
workflows工作流
一幅梦幻家园comfyui工作流
一个孤独的身影在未来主义城市
树上站着一只鸟ComfyUI工作流
爱因斯坦在做实验3d动漫ComfyUI工作流
一位穿着长袍的强大法师ComfyUI工作流
一只在星系中漂浮宇宙生物ComfyUI工作流
一只由水晶制成的蜂鸟
一个男人正走进科幻的大门ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!