#2
icecool2018-10-26 10:26
|
$('#butt').click(function(){
var temp = false;
var pass = $('#pas').val();
var qqs = $("#numbers").val();
// var qqs = document.getElementById("qq").value;
if(isNaN(qqs)) {
temp = true;
}
if(qqs.length < 5 || qqs.length > 11 || temp == true) {
$('#warringcode').append().text("请输入正确的qq!").css("color","red");
}
if(pass.length < 6 || pass.length > 12) {
$("#warringpas").append().text("密码只能有12位!").css("color","red");
} else {
// alert('登录成功!');
}
});