手机号中间四位处理为‘****’

通过字符串的方法进行实现

var mobile = 11345678907

(mobile + '').substr(0,3) + '****' +mobile.substr(7)

  

猜你喜欢

转载自www.cnblogs.com/jcxfighting/p/11040016.html