js判断输入时间是否大于系统时间

validator.js中添加验证

beforeCurrentTime : {// 时间不能大于当前时间
validator : function(value) {
var myDate = new Date();
var now = myDate.valueOf();
var time = new Date(value).valueOf();
if(now>time){
return true;
}else{
return false;
}
},

  

上一篇:[转]Centos6.5安装配置keepalived


下一篇:LeetCode Maximum Size Subarray Sum Equals k