我正在使用RobinHerbots/jquery.inputmask图书馆。
我需要确保输入的日期大于当前日期。
有 yearrange
的代码,但我没有看到任何基本“daterange”的内容。
使用 RobinHerbots/jquery.inputmask 库,如何确保输入的日期大于当前/今天的日期 new Date()?
最佳答案
github of RobinHerbots/jquery.inputmask 中有一个关于您的问题的未解决问题:
RobinHerbots 回答说该功能将在 3.4 中实现,目前您可以使用 postValidation 回调。
In the current date alias this is not implemented. However, you can use the postValidation callback to validate if the input is after the current date.
It would be a nice feature, and I will add it to the date alias in milestone 3.4
关于javascript - RobinHerbots jquery.inputmask 日期范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28373097/