解决方式: 模拟一个外部的点击事件, 就会将弹窗关闭
var yearStr = laydate.render({
elem: '#yearStr',
type: 'year',
change: function(value, date){ //监听日期被切换
$("body").click();
$("#yearStr").val(value);
},
trigger: "click"
});
标签:body,layDate,render,yearStr,value,关闭,方法,click
来源: https://www.cnblogs.com/jkfeng/p/13079777.html