手机号加星 Gary Wang 2023-02-13 前端 js 手机号加星 123456789var data={ list:[13000000000, 13156478901], yanma:[]};for(a of data.list){ var str = String(a); data.yanma.push(str.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'))}console.log(data);