jquery validata.js 使用问题

我的使用方法:

 <form action="" id="commentForm">
        <span>校验项</span><input type="text" id="name" class="checkUnameLen" name="" required/>
        <input type="button" onclick="check()" value="校验"/>
    </form>
function check(){
if($("#commentForm").validate()){
    console.log("true");
}else{
    console.log("false");
}

}

/**校验长度*/
$.validator.addMethod("checkUnameLen", function(value) {
if(/^[a-zA-Z0-9]{6,20}$/.test(value)){
return true;
}
return false;
}, "请输入6-20位字符,不包含汉字及特殊字符");

问题:
1.不输入直接提交,输出true;
2.输入错误,有错误提示,但是输出true;
3.输入正确,没有错误提示,但是仍然输出true;
大家帮忙看看,哪里写错了啊?

要把checkUnameLen作为规则添加给你的表单,参考
http://blog.csdn.net/jbgtwang/article/details/8778601