时间:2024-10-13 02:50:28
1、在你的项目中需要引入hutool的jar包
3、CharSequence charSequence = PhoneUtil.subBefore(tel);//获取前三位
5、如果手机号为null则直接返回null