#4位数

jQ截取手机号中间4位数变为****

$(function(){varphone=$('#phone').text();varnPhone=phone.substr(0,3)+'****'+phone.substring(7,11))$('#phone').text(nPhone);}); ...