标签:
html文件:<input name="" type="date" value="" id="datePicker" class="input">js文件:$(document).ready(function () {document.getElementById(‘datePicker‘).valueAsDate = new Date();}
日期类型的input元素设置默认值为当天
原文地址:http://www.cnblogs.com/maoyazhi/p/4705118.html