<script> var hali= new Date(); var monthnow=hali.getMonth(); var datenow=hali.setDate(21); var yearnow=hali.setFullYear(2017); document.write("it's "+datenow+" in the month of " +monthnow+" in the year of "+yearnow+"<br/>"); </script>
求教大神,為什么設(shè)置的時間對象打印出來不對?實在是不明白,謝謝!
qq_愛喝水的魚_0
2018-05-02 10:30:00