//计算字符串长度(含中文)
String.prototype.len = function() {
return this.replace(/[^/x00-/xff]/g,"**").length;
}
js 计算字符串长度(含中文)
最新推荐文章于 2021-10-28 11:33:59 发布
//计算字符串长度(含中文)
String.prototype.len = function() {
return this.replace(/[^/x00-/xff]/g,"**").length;
}