gpt4 book ai didi

javascript - RobinHerbots jquery.inputmask 日期范围

转载 作者:行者123 更新时间:2023-11-29 21:52:28 25 4
gpt4 key购买 nike

我正在使用 RobinHerbots/jquery.inputmask图书馆。

我需要确保输入的日期大于当前日期。有 yearrange 的代码,但我没有看到基本“daterange”的任何内容。

使用 RobinHerbots/jquery.inputmask 库,如何确保输入的日期大于当前/今天的日期 new Date()?

最佳答案

关于您在 github of RobinHerbots/jquery.inputmask 中的问题有一个 Unresolved 问题:

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com