摘要: 1.使用正则判断 let str = '123456' let isNum = /^\d+$/.test(str) // isNum 等于true 阅读全文
posted @ 2021-06-21 16:29 苑超 阅读(3240) 评论(0) 推荐(0) 编辑