摘要: let re =/^(\d{4})-(\d{2})-(\d{2})$/; let str = "2022-06-22"; if (re.test(str) { console.log("验证成功!") } 阅读全文
posted @ 2022-06-22 10:19 scwyfy 阅读(270) 评论(0) 推荐(0) 编辑