js控制手機號碼中間用星號代替
$("#tel").html($("#tel").substring(0,3)+"****"+$("#tel").substring(8,11)); ...
如手機號碼 ,中間四位用 代替 var phone 方法 字符串的截取 : 方法 正則表達式 : 測試結果: 。 銀行卡,出后四位之外其他展示為星號 ...
2019-08-22 10:53 0 633 推薦指數:
$("#tel").html($("#tel").substring(0,3)+"****"+$("#tel").substring(8,11)); ...
select REPLACE(tel,SUBSTR(tel,4,4),'****') tel from rwork_uinfo where comp_id = 3722 查詢結果 ...
三種實現方式 結果: ...
1、select REPLACE(mobile,SUBSTR(mobile,4,4), '****') as mobile from tableName 2、select INSERT(mobile ...
MySql ------------------------- ...
var tel = "13122223333"; var reg = /^(\d{3})\d{4}(\d{4})$/; tel = tel.replace(reg, "$1****$2" ...
兩種方法: 方法一 語法 SUBSTITUTE(text,old_text,new_text,[instance_num]) 參 ...
效果展示: 直接上代碼: ...