根据ISO 8601编码的日期和时间(年,月,日,小时,分钟,秒,几分之一秒),没有时区信息。
<!DOCTYPE HTML> <html> <body> <form action="/cgi-bin/html5.cgi" method="get"> Local Date and Time : <input type="datetime-local" name="newinput" /> <input type="submit" value="submit" /> </form> </body> </html>
运行上面代码输出
链接:https://www.learnfk.comhttps://www.learnfk.com/html5/html5-datetime-local.html
来源:LearnFk无涯教程网
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)