1. //证件号码掩码 plusXing(str,3,3) 183*******776
    2. plusXing(str,frontLen, endLen) {
    3. let len =str.length -frontLen - endLen;
    4. let xing ='';
    5. for (let i = 0; i < len; i++) {
    6. xing += '*';
    7. }
    8. return str.substring(0,frontLen) + xing +str.substring(str.length -endLen);
    9. }