你把书上的东西贴出来,不然谁能帮你。。。
书上就这么多啊 它说自己改啊 书上有的话我还会问嘛
<script> <br />var d = new Date() <br />var vYear = d.getFullYear() <br />var vMon = d.getMonth() + 1 <br />var vDay = d.getDate() <br />var h = d.getHours(); <br />var m = d.getMinutes(); <br />var se = d.getSeconds(); <br />s=vYear+(vMon<10 ? "0" +'-'+ vMon : vMon)+'-'+(vDay<10 ? "0"+ vDay : vDay)+' '+(h<10 ? "0"+ h : h)+':'+(m<10 ? "0" + m : m)+':'+(se<10 ? "0" +se : se); <br />alert(s); <br /></script>