angularjs提示框及正则表达式校验
来源:互联网 发布:热血江湖sf源码 编辑:程序博客网 时间:2024/06/05 10:39
vm.gobindphoneCertify = function () { if(!vm.cardphone) {
//-----------提示框 var alertPopup = $ionicPopup.alert({ title: '提示!', template: '手机号不能为空', buttons: [ { text: '<b>确定</b>', type: 'button-positive' }, ] });
//-------------- }else { var re = /^1\d{10}$/ if (re.test(vm.cardphone)) { $state.go('cardphonecertify'); } else { var alertPopup = $ionicPopup.alert({ title: '提示!', template: '手机号格式不正确', buttons: [ { text: '<b>确定</b>', type: 'button-positive' }, ] }); } }};
0 0
- angularjs提示框及正则表达式校验
- 正则表达式校验及实例
- 正则表达式校验及实例
- 正则表达式校验及实例
- 正则表达式校验及实例
- AngularJS进阶(十三)JS利用正则表达式校验手机号
- 正则表达式总结及常规的正则表达式校验
- 金额输入框正则表达式,金额校验
- 正则表达式校验例子
- 常用校验正则表达式
- 正则表达式 校验
- 校验正则表达式
- js正则表达式校验
- 正则表达式文本框校验
- Struts2正则表达式校验
- 正则表达式校验大全
- 正则表达式-手机号校验
- 正则表达式校验 android
- RxJava 学习笔记(二)
- iOS常用技巧
- 运算符重载
- 结构化数据,非结构化数据和关系型数据库(RDB)、非关系数据库的关系(Non-RDB)
- android调用系统相机,获取照片的适配性问题
- angularjs提示框及正则表达式校验
- c++ STL string一些总结
- DNS测试工具querperf
- 开启dblink的 oracle net trace与tracing --对dblink进行跟踪的方法
- hive 序列化serde
- 15.7节练习
- 小试文件
- 如何给div动态加id
- user-agent技术在PC与移动端标识