问题
Description:
I'm using Jquery datepicker in my application, and also user is allowed to enter date by keyboard. Everything is working fine but when user enters 000 or 0000 as year then my code is breaking , because there is no year having value '000 or 0000'. So, I want to validate value entered by user, specially year value, b'coz date picker is validating date and month and giving an error accordingly but it is not validating year value.
来源:https://stackoverflow.com/questions/44385743/how-to-validate-year-value-in-datepicker