前端获取时间javascript

来源:互联网 发布:学编程需要学什么 编辑:程序博客网 时间:2024/06/08 06:15
<script type="text/javasceipt">window.onload=function(){      var oDate=new Date();      var text=oDate.getFullYear()+'年'+oDate.getMonth()+'月'+oDate.getDay()+'日'+oDate.getHours()+'时'+oDate.getMinutes()+'分'+0DateSeconds()+'秒';      alert(text);}</script>


原创粉丝点击