js 判断日期格式functionisDate(dateString){if(dateString.trim()=="")returntrue varr=dateString.match(^(d{1,4})(-|)(d{1,2023-03-10JavaScript230