uniapp隐藏手机号中间四位改成**** |
您所在的位置:网站首页 › 188号段中间四位杭州临安 › uniapp隐藏手机号中间四位改成**** |
{{phone}} export default { data() { return { phone: '13622229999', }; }, onShow() { this.phoneNumShow() }, methods: { //隐藏手机号 phoneNumShow() { let that = this; let number = this.phone; //获取到手机号码字段 let mphone = number.substring(0, 3) + '****' + number.substring(7); that.phone = mphone console.log(that.phone, '1'); }, } } |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |