手机号的前端处理,中间显示****,字符串类型slice()与substring()和substr()的用法的总结

效果图:数组 方法:使用字符串切割 180****0000=180+****+0000;spa 代码:blog const mobile=18000000000字符串 const pre=mobile.substring(0,3)string const lst=mobile.substring(7,11)class const showMobile=pre+"****"+lstbfc 使用的是s
相关文章
相关标签/搜索