JS格式化时间:
<script type="text/javascript" language="javascript"> var d = new Date(); var year = d.getYear(); var month = d.getMonth(); var date = d.getDate(); var hours = d.getHours(); var minutes = d.getMinutes(); var seconds = d.getSeconds(); alert(year+"-"+month+"-"+date+" "+hours+ ":"+minutes+":"+seconds); </script>
声明:如需转载,请注明来源于www.webym.net并保留原文链接:http://www.webym.net/jiaocheng/848.html