// 统计字符串长度(双字节替换成单字节)
function getByLen(e){
return e.replace(/[^\x00-\xff]/g,"01").length;
}
js统计字符串长度
最新推荐文章于 2024-07-25 09:24:40 发布
// 统计字符串长度(双字节替换成单字节)
function getByLen(e){
return e.replace(/[^\x00-\xff]/g,"01").length;
}