Date()类:
方法:{
va r date=new Date()
date.get(FullYear()/Monther/Date/Hours/Minutes/Seconds
id.innerHtml='当前时间为------'}
setInterval(方法名,1000);时间会动起来
倒计时:
定义一个固定的时间:var futer=new Date(2019,12,2,23,0,0)
当前时间。var now=new Date();
var left=paserInt(future-now)/1000);
day=paserint(left/86400)
跳转:到了一定时间可以让它跳转到其他页面:window.location.href='http:'
call和 apply:
alert('我的this是'+this'+,我的a是'+a'+,)
.apply('ac',[2,3])
.call('ss',2,3)