【thinkphp】之用户注册验证
2020-05-23ThinkPHP
【thinkphp】之用户注册的简单验证
第一步:引入Validform验证
<script type="text/javascript">
$("#demoform").Validform({
tiptype:4,
ajaxPost:true,
datatype:{
mobile:/^1[3|5|6|7|8|9]\d{9}$/
},
});
</script>
自定义正则验证手机号
效果图:
很赞哦! ()