巧用JS实现今天的日期,DEDE技术
导读:DEDE技术
直接复制以下代码,放在你想要显示的地方:
<script language=JavaScript>today=new Date();function initArray(){this.length=initArray.arguments.梦织模板lengthfor(var i=dede商城模板0;i<this.length;i++)this[i+1]=initArray.arguments[i] }var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");document.write(today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日"," ",d[today.getDay()+1]);</script>
织梦cms模板
相关模板织梦dede商城模板。声明: 本文由我的SEOUC技术文章主页发布于:2023-07-22 ,文章巧用JS实现今天的日期,DEDE技术主要讲述巧用,日期,DEDE技术网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_34100.html