如手机号码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、通过长度截取 ...