摘要: // 字符串长度返回:1中文=2个字符,其它都是1个字符 export function getLength(str: any) { let strLength = 0; for (let i = 0; i < str.length; i++) { if (/[\u4e00-\u9fa5]/.tes 阅读全文
posted @ 2023-12-18 15:52 yoona-lin 阅读(3) 评论(0) 推荐(0) 编辑