setFullYear()
为什么在chrome下,用setFullYear(2014)得到是1418310193647
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获得年份 </title>
<script type="text/javascript">
var mydate=new Date();
var myyear=mydate.setFullYear(2014); ;
document.write("年份:"+myyear);
</script>
</head>
<body>
</body>
</html>