function (param) {
let res = ''
if (typeof param === 'string') {
let arr = param.split('').map((item, index) => {
return index === 3 || index === 7 ? ' ' + item : item
})
res = arr.join('')
}
return res
}
手机号加空格
最新推荐文章于 2023-03-14 11:15:59 发布