07 2023 档案

摘要:1、只包含中文 const regCn = /[\u4e00-\u9fa5]+/ // !str.match(regCn ) 2、只包含英文 const regOnlyEn = /[a-zA-Z]+/ // regEn.test(str) 3、包含英文和数字 const regOnlyEnAndNu 阅读全文
posted @ 2023-07-27 15:03 webHYT 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示