为什么提交的时候,老是说我忘记使用getFullYear()获得年份???
<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>
<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>
2016-11-16
举报