JS校验判断姓名constreg=/^[\u4e00-\u9fa5]{2,8}$/;constname="呜哈哈1";console.log(`姓名校验${reg.test(name)?"正确":"错误"}`);JS校验判断手机号constreg=/^1[3|4|5|7|8]\d{9}$/;cons…
JS校验判断姓名constreg=/^[\u4e00-\u9fa5]{2,8}$/;constname="呜哈哈1";console.log(`姓名校验${reg.test(name)?"正确":"错误"}`);JS校验判断手机号constreg=/^1[3|4|5|7|8]\d{9}$/;cons…
讨论
登录后参与讨论
还没有评论,来说第一句吧。