用lodash实现*隐藏手机号中间位数
let nb = '13988888888';
let tel = nb.split('');
let res = _.fill(tel,'*',3,tel.length-4);
console.log(res.join(''));
用lodash实现*隐藏手机号中间位数
欢迎关注小程序,感谢您的支持!
let nb = '13988888888';
let tel = nb.split('');
let res = _.fill(tel,'*',3,tel.length-4);
console.log(res.join(''));
用lodash实现*隐藏手机号中间位数
欢迎关注小程序,感谢您的支持!