做色流网站网页相册制作
news/
2025/9/22 19:09:00/
文章来源:
做色流网站,网页相册制作,wordpress列表分页 js,wordpress添加子主题利用Date对象编写程序#xff0c;判断并输出今天是开学的第几周#xff0c;星期几。(function(){var startDay new Date(2014,8,1); //根据指定的年月日时分秒设置开学时间为2014/09/01var startMs startDay.getTime();//返回1970年至今的毫秒var startYear startD…利用Date对象编写程序判断并输出今天是开学的第几周星期几。(function(){var startDay new Date(2014,8,1); //根据指定的年月日时分秒设置开学时间为2014/09/01var startMs startDay.getTime();//返回1970年至今的毫秒var startYear startDay.getFullYear();//从Date对象以四位数字返回年份var startMonth startDay.getMonth()1; //从Date对象返回年份(0-11)var startDate startDay.getDate(); // 从Date对象返回一月中的某一天(1~31)var nowDay new Date();var nowMs nowDay.getTime();var nowYear nowDay.getFullYear();var nowMonth nowDay.getMonth()1;var nowDate nowDay.getDate();var startDays parseInt(startMs/86400000);var nowDays parseInt(nowMs/86400000);var totalDays nowDays - startDays;var week parseInt(totalDays/7)1;var nowdate nowDay.getDay();msg1 开学时间 startYear 年 startMonth 月 startDate 日;document.write(msg1);document.write()msg2 现在时间 nowYear 年 nowMonth 月 nowDate 日;document.write(msg2);document.write();msg3 第 week 周星期 nowdate;document.write(msg3);})();
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/910075.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!