html文件:<input name="" type="date" value="" id="datePicker" class="input">js文件:$(document).ready(function () {document.getElementById('datePicker').valueAsDate = new Date();}