我收到一个仅出现在出色的 IE8 上的错误,它指向以下函数,特别是以下行:return (expDate.getTime() > Date.now());
$.validator.addMethod("checkDocExpiry",function(value) {
var driverLicExp = ($('#drivers-license-expiration').val()) ? $('#drivers-license-expiration').val() : '';
if (driverLicExp != ''){
var expDate = new Date(driverLicExp);
return (expDate.getTime() > Date.now());
}else{
return (true);
}
}, "Your driver's license has expired.");
我不确定是什么原因造成的,我对为旧版浏览器进行开发还很陌生。这在 FF、IE10、Chrome、Safari 中运行良好。
任何帮助将非常感激。
谢谢