在JavaScript中,可以利用isNaN()方法和Date对象的parse()方法来判断是不是日期,parse()方法可解析一个日期时间字符串;语法“if(isNaN(data)&&!isNaN(Date.parse(d