This question already has an answer here:
(这个问题在这里已有答案:)
I would like to add a current date to a hidden HTML tag so that it can be sent to the server:
(我想在隐藏的HTML标记中添加当前日期,以便将其发送到服务器:)
<input type="hidden" id="DATE" name="DATE" value="WOULD_LIKE_TO_ADD_DATE_HERE">
How can I add a formatted date to the VALUE attribute?
(如何在VALUE属性中添加格式化日期?)
ask by VolosBlur translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…