更新时间:2023-11-27 16:27:10
我找到了答案:D就是这样。全部谢谢
I find the answer :D this is it. Thanks all
$.validator.addMethod("birth", function (value, element) {
var year = value.split('/');
if ( value.match(/^\d\d?\/\d\d?\/\d\d\d\d$/) && parseInt(year[2]) <= 2002 )
return true;
else
return false;
});