js手機號碼中間用星號代替。銀行卡后四位之外改為星號
如手機號碼13123456789,中間四位用'*'代替 var phone='13123456789' 方法1(字符串的截取): 方法2(正則表達式): 測試結果: 131****6789。 銀行卡,出后四位之外其他展示為星號 ...
select REPLACE tel,SUBSTR tel, , , tel from rwork uinfo where comp id 查詢結果: ...
2020-02-15 12:13 0 1622 推薦指數:
如手機號碼13123456789,中間四位用'*'代替 var phone='13123456789' 方法1(字符串的截取): 方法2(正則表達式): 測試結果: 131****6789。 銀行卡,出后四位之外其他展示為星號 ...
兩種方法: 方法一 語法 SUBSTITUTE(text,old_text,new_text,[instance_num]) 參數 Text是需要替換其中字符的文本,或是含有文本的單元格引用 ...
$("#tel").html($("#tel").substring(0,3)+"****"+$("#tel").substring(8,11)); ...
直接加到WXML里 在頁面中就可以直接使用了 ...
本文轉載自:https://blog.csdn.net/qq_38290251/article/details/83421069 1. 切割 2. 正則 ...
代碼COPY 3. 使用正則 func ...
1、select REPLACE(mobile,SUBSTR(mobile,4,4), '****') as mobile from tableName 2、select INSERT(mobile ...
1、使用正則: 2、通過長度截取 ...