摘要: 1.匹配11位手机号,开头字母位1 ^1\d{10}$ 2.匹配姓名,中文3-6位 [\u4e00-\u9fa5]{3,6} 3.匹配密码,必须是6-16位的字符,只能包含数字、字母、下划线: $\w{6-16}^ 4.匹配邮箱 ^\w+@\w+(\.\w+){1,2} 5.匹配座机号 ^\d{1, 阅读全文
posted @ 2020-04-23 20:46 lanshanxiao 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1.距离生日还有多少天: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <ti 阅读全文
posted @ 2020-04-23 09:46 lanshanxiao 阅读(2028) 评论(0) 推荐(0) 编辑