function (mobile) {
var tel = mobile
tel = "" + tel // 把数值型转为字符串
var newTel = tel.substr(0, 3) + "****" + tel.substr(7)
return newTel
}
电话号码中间四位用*代替
最新推荐文章于 2020-04-27 01:44:31 发布
function (mobile) {
var tel = mobile
tel = "" + tel // 把数值型转为字符串
var newTel = tel.substr(0, 3) + "****" + tel.substr(7)
return newTel
}