W3School TIY
编辑您的代码:
<!DOCTYPE HTML> <html> <body> <form action="http://www.layui1.com/example/html5/demo_form.asp" method="get"> Date and time: <input type="datetime-local" name="user_date" /> <input type="submit" /> </form> </body> </html>
查看结果: