Angular UI 日期选择器最小日期不起作用 [英] Angular UI date-picker min Date is not working
本文介绍了Angular UI 日期选择器最小日期不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是 angular 1.0.8.我想使用 angular ui datepicker.我想将最小日期设置为昨天.
I am using angular 1.0.8. I want to use angular ui datepicker. I want to set minimum date to yesterday.
我尝试过诸如min-date='-1d'"之类的 min-date 选项,但它不起作用.
I had tried min-date option like "min-date='-1d'" but it's not working.
有人遇到这个问题吗?我需要帮助设置最小日期选项.
Does anyone have this issue? I need help in setting min-date option.
感谢和问候,
杰伊·帕特尔
推荐答案
我使用的是 angular.ui 0.10.0 版本,它有min"而不是min-date".我根据评论将min-date"更改为min"并且它工作正常
I am using angular.ui 0.10.0 version and it's having "min" instead of "min-date". I changed "min-date" to "min" as per comment and it's working properly
这篇关于Angular UI 日期选择器最小日期不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文