身份证号脱敏 正则 const idCard = '110101198702171378' idCard.replace(/(\w{6})\w*(\w{4})/, '$1*************$2')