function starPhone(phoneNum) {
let str = String(phoneNum),
strLen = str.slice(-8, -4);
return str.replace(strLen, "****");
}
手机号显示省略号
最新推荐文章于 2021-11-25 14:17:51 发布
function starPhone(phoneNum) {
let str = String(phoneNum),
strLen = str.slice(-8, -4);
return str.replace(strLen, "****");
}