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

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

var mobile = 11345678907

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

  

原文地址:https://www.cnblogs.com/jcxfighting/p/11040016.html