为何手机号码中间四位要打*隐藏,这是否意味着什么?
- 内容介绍
- 文章标签
- 相关推荐
本文共计91个文字,预计阅读时间需要1分钟。
plaintexttv_phone.setText(strPhone);tv_name.setText(strName);if (strName !=null) { // 取字符串的第一个字符 tv_name.setText(strName.substring(0, 1) + 师傅);}if (strPhone !=null && !.equals(strPhone) && strPhone.length()==11) {}
tv_phone.setText(strPhone); tv_name.setText(strName); if (strName !=null){ //取字符串的第一个位 tv_name.setText(strName.substring(0,1)+"师傅"); } if (strPhone != null && !"".equals(strPhone) && strPhone.length() == 11) { tv_phone.setText(strPhone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2")); }
本文共计91个文字,预计阅读时间需要1分钟。
plaintexttv_phone.setText(strPhone);tv_name.setText(strName);if (strName !=null) { // 取字符串的第一个字符 tv_name.setText(strName.substring(0, 1) + 师傅);}if (strPhone !=null && !.equals(strPhone) && strPhone.length()==11) {}
tv_phone.setText(strPhone); tv_name.setText(strName); if (strName !=null){ //取字符串的第一个位 tv_name.setText(strName.substring(0,1)+"师傅"); } if (strPhone != null && !"".equals(strPhone) && strPhone.length() == 11) { tv_phone.setText(strPhone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2")); }

