截取字符串并用星号显示 let num = ids.length>0?ids.substring(0,6)+"*******"+ids.substring(ids.length-4,ids.length):"";