首页 > Web开发 > 详细

jsp页面动态的获取系统时间

时间:2021-09-02 03:30:13      阅读:24      评论:0      收藏:0      [点我收藏+]
 1 /*-------------------- 获取系统当前时间方法start------------------------ */
 2 
 3         function datetime() {
 4             var now = new Date();
 5             $(‘#createDate‘).val(now.getFullYear() + "-"
 6                 + (now.getMonth() + 1) + "-" + now.getDate()+" "+now.getHours() + ":"
 7                 + now.getMinutes() + ":" + now.getSeconds())
 8         }
 9         window.setInterval("datetime()");
10 /*--------------------------- 获取系统当前时间方法end------------------------ */

 

jsp页面动态的获取系统时间

原文:https://www.cnblogs.com/qiuhuiqiang/p/15213299.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!