首页 > javascript > 正文

现在的日期及星期-大前端
2017-02-10 10:47:06   来源:   评论:0 点击:

<script type="text javascript">var cpro_id="u2273667";(window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"
<script type="text/javascript">var cpro_id="u2273667";(window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"3",rsi0:"778",rsi1:"125",pat:"6",tn:"baiduCustNativeAD",rss1:"#FFFFFF",conBW:"0",adp:"1",ptt:"0",titFF:"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91",titFS:"14",rss2:"#555555",titSU:"0",ptbg:"90",piw:"0",pih:"0",ptp:"0"}</script><script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>

[javascript]
<script language=JavaScript>

today=new Date();

function initArray(){

this.length=initArray.arguments.length

for(var i=0;i

this[i+1]=initArray.arguments }

var d=new initArray(

" 星期日",

"星期一",

"星期二",

"星期三",

"星期四",

"星期五",

"星期六");

document.write(

" ",

today.getYear(),"年",

today.getMonth()+1," 月",

today.getDate(),"日",

d[today.getDay()+1],

"" );

</script>
[/javascript]

相关热词搜索:

上一篇:我学JavaScript 1.4 事件处理-大前端
下一篇:一个漂亮的jQuery焦点图-大前端

分享到: 收藏
评论排行