[素材] 关于首页左侧时间的问题,怎么让全站左上显示时间 |
1微币
最佳答案找到模板header.htm文件,在你想插入的地方加上以下代码:
今天是:
function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + yy + '年' + mm + '月');
}
function Date_of_Today(){
var now = new Date();
var ...
| ||
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-11-23 13:31 , Processed in 0.029891 second(s), 3 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.