js 验证是否有效日期function check(date){ return (new Date(date).getDate()==date.substring(date.length-2))}参数date可以格式化为xx-xx-xx或xxxx-xx2023-05-01JavaScript1450