1.通过字符串截取
let phone = \'18688886888\' phone = phone.substring(0, 3) + \'****\' + phone.substr(phone.length - 4) console.log(phone)
1.通过字符串截取
let phone = \'18688886888\' phone = phone.substring(0, 3) + \'****\' + phone.substr(phone.length - 4) console.log(phone)
内容版权声明:除非注明,否则皆为本站原创文章。