let formatPhone = p=>{
if(p){
return p.substring(0,3) + '*****' + p.substring(p.length-2);
}
}
<div>{{13738384380 |formatPhone}}</div>
//137****80
版权声明:本文为weixin_43787528原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
let formatPhone = p=>{
if(p){
return p.substring(0,3) + '*****' + p.substring(p.length-2);
}
}
<div>{{13738384380 |formatPhone}}</div>
//137****80