<script type="text/javascript">
$(".changeMobileNum").each(function(){
if(!isNaN($(this).val()) || $(this).val().match(/^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/)){
var num = $(this).val().substring(0,3)+"****"+$(this).val().substring(8,11) ;
$(this).val(num);
}
});
</script>
时间: 2024-10-17 09:22:03