随笔分类 -  JS

摘要:function startTime() { var today = new Date(); //定义日期对象 var yyyy = today.getFullYear(); //通过日期对象的getFullYear()方法返回年 var MM = today.getMonth() + 1; //通过日期对象的getMonth()方法返回年 var dd = today.getDate(); //通过日期对象的g... 阅读全文
posted @ 2013-12-18 15:44 xw2cc 阅读(305) 评论(0) 推荐(0)
摘要:function timeCount() { var url = "MAC.aspx"; parent.location.href = url; } function beginCount() { window.setInterval("timeCount()", 5000); }后臺調用:Page.RegisterStartupScript("", ""); 阅读全文
posted @ 2013-12-18 15:42 xw2cc 阅读(184) 评论(0) 推荐(0)