2017-09-20 27 views

回答

0

在这里,你有一个解决方案https://jsfiddle.net/yvck28fc/

$('body').append(`<input type="text" id="datepicker">`); 
 
$("#datepicker").datepicker();
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet"/> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

首先,我附上了input textbox然后分配datepicker给它去。 我用jQuery datepicker

参考:https://jqueryui.com/datepicker/

希望这会帮助你。

+0

谢谢你的喜欢我 – Shivukumar

相关问题