下面代码document.write("年份:"+floatInt(mydate.getMonth())+1+ "<br/>");是错的,然后该代码后面的代码就不会执行,有没有办法即使错了后面的代码继续执行
var mydate=new Date();
var myyear=mydate.getFullYear() ;
document.write("年份:"+mydate.getDate()+ "<br/>");
document.write("年份:"+mydate.getFullYear()+ "<br/>");
document.write("年份:"+mydate.getYear()+ "<br/>");
document.write("年份:"+floatInt(mydate.getMonth())+1+ "<br/>");
document.write("年份:"+mydate.getFullYear()+ "<br/>");
document.write("年份:"+mydate.getFullYear()+ "<br/>");
document.write("年份:"+mydate.getFullYear()+ "<br/>");