<script type="text/javascript"> var mydate=new Date(); document.write(mydata); var myyear=mydata.getFullYear() ; document.write(myyear); var myset=mydata.setFullYear(88); document.write("年份:"+myset); </script>
直接用原变量就行,不能增加新变量document.write("年份:"+mydate);
data单词写错了
单词写错了==
哦哦,知道了,不能用myset啊!!