e.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
    }

    function maskCreditNumber(credit) {
        return credit.replace(/(\d{4})\d{8}(\d{4})/, '$1********$2');
    }

    getUserinfo();
</script>
</body>
</html>
