tianxiangbing / calendar Goto Github PK
View Code? Open in Web Editor NEWjs日历控件,jquery多选日期插件
Home Page: http://tianxiangbing.github.io/calendar/example/
js日历控件,jquery多选日期插件
Home Page: http://tianxiangbing.github.io/calendar/example/
多选日期会有重复的,同一天日期重复设置了。
if(a(this).hasClass("js-calendar-submit")) {
b.settings.selected && b.settings.selected.call(b, b.dateArr, b.calendarContainer) ;
if(0 === b.dateArr.length){
alert('请至少选择一个日期');
return;
}else{
var c = b._toString(b.dateArr);
e = c.join(b.mutilSeparator), b.settings.time && (e += " " + a(".js-calendar-hours", b.calendarContainer).val() + ":" + a(".js-calendar-minutes", b.calendarContainer).val() + ":" + a(".js-calendar-second", b.calendarContainer).val()), a(b.settings.target).val(e), b.hide()
}
}
当第一次选择月份的时候会自动加一个月例如我选择一月会自动显示成2月份
楼主能否支持npm引用?
您好,请问只显示月份模式 ,设置本月之后的月份禁止点击是如何做的
<script>
var calendarDay
$(".calendar").Calendar({
toolbar:true,
zIndex:999,
afterSelected: function (obj, date) {
var calendarYear = date.getFullYear();
var calendarMonth = date.getMonth() + 1;
calendarDay = date.getDate();
console.log("年:" + calendarYear)
console.log("月:" + calendarMonth)
console.log("日:" + calendarDay)
},
});
console.log("日:" + calendarYear) //我在上面的代码里面获取了年月日,怎么能在函数外面调用 年,月,日这三个参数呀
</script>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.