var returncheckQQ = function checkQQ() {...return false;},returncheckQQ能到到返回值吗
//验证QQ格式是否正确
var returncheckQQ = function checkQQ() {
var QQValue = trim(QQ.val());
if (QQValue != null&& QQValue != "") {
var QQRegex = /^\w{6,20}$/;
if (!QQRegex.test(QQValue)) {
testQQ.hide();
testQQ.text("QQ号格式不正确!").show();
testQQok.hide(); //先隐藏ok
testQQno.hide().show();
return false;
}
} else {
testQQ.hide();
testQQok.hide();
testQQno.hide();
return true;
}
}