js隐私信息转换

//str:处理的字符串 frontLen前面显示位数 endLen后面显示位数 isHide是否隐藏 不为0隐藏 type 1身份证 2手机号
function plusToXing (str,type,isHide) {
debugger;
if ((str != 0 && !str) || str == ‘null’) {
return str = ”;
}else {
if(isHide == ‘0’){
//身份证
if(type==’1’){
var len = str.length-6-0;
var xing = ”;
for (var i=0;i

发布了4 篇原创文章 · 获赞 3 · 访问量 2476

猜你喜欢

转载自blog.csdn.net/ZQ960214/article/details/81905411