摘要: 方案1: const reg = /^(.)1*$/ return reg.test("111111111") 方案2: str.replaceAll("1", "").trim() "" 阅读全文
posted @ 2022-04-20 12:29 敲敲碰碰 阅读(341) 评论(0) 推荐(0)