有没有办法将 Materialise 日历嵌入到页面中?我知道您可以输入日期选择器并在单击它时显示日历,但我想在页面完全加载后立即显示日历。
最佳答案
HTML:
<input type="text" class="datepicker">
JS:
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15, // Creates a dropdown of 15 years to control year,
today: 'Today',
clear: 'Clear',
close: 'Ok',
closeOnSelect: false // Close upon selecting a date,
});
关于javascript - 使用 Materialise 的嵌入式日历,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46060107/