var phone = "13682767619"
var newphone=phone .replace(/^(\d{7})\d{3}(\d{1})$/,'$1***$2'); // 1368276***9
var name = "王小明"
var newname=name .replace(/^(\D{1})\D{1}/,'$1*'); //王*明
var phone = "13682767619"
var newphone=phone .replace(/^(\d{7})\d{3}(\d{1})$/,'$1***$2'); // 1368276***9
var name = "王小明"
var newname=name .replace(/^(\D{1})\D{1}/,'$1*'); //王*明