在頁面加載的時候自動為日期插件添加當前日期。
<script type="text/javascript">$(document).ready(function(){$("#startTime").val(formatDate());$("#endTime").val(formatDate());}
jsp頁面的body部分代碼:
<td><label>日期:</label></td><td><input type="text" id="startTime">至:<input type="text" id="endTime"></td>
新聞熱點
疑難解答