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);
            }
})

posted @ 2019-01-14 16:16  microsoftzhcn  阅读(487)  评论(0编辑  收藏  举报