js身份證號、電話脫敏處理(用*替換中間數據)

數字類型html certificatecodecopy = certificatecode.replace(/^(.{6})(?:\d+)(.{4})$/, "$1****$2"); 全部類型post enginenocopy = engineno.replace(/^(.{2})(?:\w+)(.{1})$/, "$1****$2"); code enginenocopy = engineno
相關文章
相關標籤/搜索