Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的网站上有一个日期选择器,但现在我想根据时间禁用日期。我想实现两件事:
可以通过jquery吗?
根据一天中的小时更改 minDate 怎么样?
var hour = new Date().getHours(); $("element").datepicker({ minDate: hour >= 14 ? 2 : 1});