JSP页面生成当前时间

  var today = new Date();

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

  $("#khsj").attr('value' , submitTime);

猜你喜欢

转载自www.cnblogs.com/lotuses/p/11355892.html