织梦dedecms显示當前时间日期的代码
{dede:mytimerunphp=yes}@me=date(
更多精彩就在: 51免费论文网|www.jxszl.com
"Y年m月d日");$weekarray=array("日","I.","II","III","IV","V","VI");@me=date("Y年m月d日")."星期".$weekarray[date("w")];
{/dede:mytime}
直接复制以上代码,贴在要显示的位置,如果是在首页,请让首页动态,非静态哦!不然静态会显示生成时候的时间!
以上是通过dedecms标签的方法,其实还有其他III种方法,再补充下
dede通过php获取
{dede:php}
$GLOBALS[thisid]=intval($refObj->Fields[id]);
{/dede:php}
js调用当天是周几:
functioninitArray(){
this.length=initArray.arguments.length
for(vari=0;i
}
vard=newinitArray("
document.write(d[today.getDay()+I.]);
js调用当天日期:
today=newDate();
document.write("
原文链接:http://www.jxszl.com/biancheng/dedecms/75409.html
热门阅读