如何解决如何禁用richfaces 3中的某些日期
我使用richfaces 3 的rich:calendar 组件,我想在我的日历中显示当天前30 天,并禁用当天前30 天和当天前的所有天数。 我这样做
<script type="text/javascript">
var curDt = new Date();
function disablementFunction(day){
if (curDt==undefined){
curDt = day.date.getDate;
}
if (curDt.getTime() - day.date.getTime() <= 2592000) return true; else return false;
}
</script>
<rich:calendar isDayEnabled="disablementFunction" />
但它不起作用。有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。