Layui 日期时间控件
一、制作只选择年、月的时间控件
//年时间控件
function yearLaydate(id) {
layui.use('laydate', function () {
var laydate = layui.laydate;
laydate.render({
elem: '#'+ id,
type: 'year',
showBottom: false, //关闭底部框 去掉取消、确定、清空按
原创
2021-01-28 15:19:09 ·
1458 阅读 ·
0 评论