//验证手机号 checkAccount(rule, value, callback) { //与表单数据进行关联 const form = this.props.form; //正则用//包起来 var regex = /^((\+)?86|((\+)?86)?)0?1[3458]\d{9}$/; if (value) { //react使用正则表达式变量的test方法进行校验,直接使用value.match(regex)显示match未定义 if (regex.te
react.js input里面验证手机号
最新推荐文章于 2023-04-03 16:40:43 发布