Use h5 input type="date" to write date selection, but you want the default value to be displayed as the current year, month and day. How to achieve this?
Additional:
I have obtained the date of the day through js, and can also assign it to the input of type="date", but the current date is not displayed on the interface. Question: How can I display the current date by default on the interface?
It seems impossible to achieve using pure html.
It’s very simple to use js: get the current time and then pass it in to the form.
var i='2017-04-20'
$('input[type="date"]').val(i)