如何在点击事件中显示当前周内所有周的开始和结束日期 [英] How to show the starting and ending date of all weeks from current week on click event

查看:102
本文介绍了如何在点击事件中显示当前周内所有周的开始和结束日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在工作一周的日历,我有两个按钮上一个和下一个。当点击下一个按钮然后需要提醒下周开始和结束日期每次点击将显示下周说明和结束日期。和以前一样按钮



< input type =buttonclass =weeknextname =value =next/>

< input type =buttonclass =previousname =value =previous/>

I'am working a week calender,i have two buttons previous and next.When click on next button then needs to alert next week starting and ending date each click will shows the next week stating and endind dates.And same like previous button

<input type="button" class="weeknext" name="" value="next" />
<input type="button" class="previous" name="" value="previous" />

推荐答案

使用javascript





http://stackoverflow.com/questions/8381427/get-start-date-and-end-date-of-current-week-week-从星期一开始,以及 [ ^ ]
use javascript


http://stackoverflow.com/questions/8381427/get-start-date-and-end-date-of-current-week-week-start-from-monday-and-end-with[^]


这篇关于如何在点击事件中显示当前周内所有周的开始和结束日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆