dashboard
repositories
filestore
activity
search
login
~husq
/
iot_drone_web
forked from
yskj/iot_drone_web
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
initial
sean.zhou
2022-03-21
b5f655fd6e424984bbafc58adf16209f2d041c22
[~husq/iot_drone_web.git]
/
src
/
utils
/
data-process.ts
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
const str = String(phoneNum)
return str.substring(0, 3) + '****' + str.slice(-4)
}