<script>
var dt=new Date();
var year=dt.getFullYear();
var month=dt.getMonth()+1;
var date=dt.getDate();
var day=dt.getDay();
var dayColl=[‘星期一‘,‘星期二‘,‘星期三‘,‘星期四‘,‘星期五‘,‘星期六‘,‘星期日‘];
var riqi=year+"年"+month+"月"+date+"日";
var xingqi=dayColl[day-1];
$(function(){
$("#date").html(riqi);
$("#date").next().html(xingqi);
});
</script>
时间: 2024-10-24 08:40:02