1、画三角:
知识点:利用border
2、手机号码加密
var tel = "18827768782";
var
tel =
"18827768782"
;
var reg = /^(\d{3})\d{4}(\d{4})$/;
reg = /^(\d{3})\d{4}(\d{4})$/;
tel = tel.replace(reg,
"$1****$2"
);
console.log(tel);