正如@koala_dev提到的那樣,您可以使用Datepicker來獲得Bootstrap。
更新時間:
$("#datepicker").datepicker({
format: " m-yyyy",
viewMode: "months",
minViewMode: "months"
});
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/css/bootstrap-datepicker.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/js/bootstrap-datepicker.js"></script>
<input type="text" id="datepicker" />
我不認爲jQuery用戶界面的日期選擇器有看法,但也許你會想看看這個插件等[日期選擇器自舉](http://eternicode.github.io/bootstrap-datepicker/) –
謝謝!!!但我想用jQuery UI的,有沒有人有想法? – lealam