JSP页面生成当前时间

  var today = new Date();

  var submitTime = today.getFullYear() + ' - ' + (today.getMonth() + 1) + ' - ' + today.getDate();

  $("#khsj").attr('value' , submitTime);
posted @ 2019-08-15 09:05  一叶之灵  阅读(631)  评论(0编辑  收藏  举报