var testLen = function(showObj,str,minInfo,maxInfo,minLen,maxLen,calBack){
// showObj [显示错误提示的对象]
// str [要验证的字符创]
// minInfo [长度太短的错误提示信息]
// maxInfo [长度太长的错误提示信息]
if(str.length < minLen){
showObj.html(minInfo);
}else if(str.length > maxLen){
showObj.html(maxInfo);
}else{
if(typeof calBack == 'function'){
calBack();
}
}
}//end 验证字符成长度