【发布时间】:2017-07-19 09:21:42
【问题描述】:
我需要选择月份和年份作为过滤器。 我在整个 web 应用程序中使用了物化 css。现在遇到一个问题,我要挑月份,所以html输入type=month。但是 Materialise CSS 只提供日期。如何将我的日期选择器变成月份选择器?
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15, // Creates a dropdown of 15 years to control year
});
而且我的 html 很简单,但不给我月份,它也给我一天。
<input type="month" class="datepicker">
【问题讨论】:
-
不行,还是得点一天才能得到日期
标签: html datepicker materialize