jquery监测文本框变化

$("#mobile").on('keyup paste blur', function () {
            var mobile = $(this).val();
            if ((/^1[34578]d{9}$/.test(mobile))) {
                GetSinup(mobile);
            } else if ((/^d{18}$/.test(mobile))) {
                GetSinup(mobile);
            }
})

原文地址:https://www.cnblogs.com/sntetwt/p/10267449.html