封装方法
1.隱藏手機號中間四位 export function formatPhone(phone){ if (typeof phone == 'number') { phone = phone.toString(); } return phone.substr(0, 3) + '****' + phone.substr(7, 11); }
轉載于:https://www.cnblogs.com/lj8023/p/10516561.html
總結
- 上一篇: 6D姿态估计从0单排——看论文的小鸡篇—
- 下一篇: 机器学习博主推荐、博文推荐