The lightweight native js calendar plug in calendar. js user guide


Instructions for use:

Need to introduce plug-in calendar. js/calendar. min. js

You need to introduce the ES10en.css stylesheet to customize the skin you want

This calendar plug-in supports cmd modularity

The following calls:

xvDate({
'targetId':'date1',// Time to write to an object id
'triggerId':['date1','dateBtn1'],// The object that triggered the event id
'alignId':'datesWrap1',// Calendar alignment object
'format':'-',// Time format   The default 'YYYY-MM-DD HH:MM:SS'
'min':'2014-09-20 10:00:00',// Maximum time
'max':'2014-10-30 10:00:00'// The minimum time
});

Parameter description:

targetId: Date write object id, cannot be empty triggerId: The object that triggers the event, id, defaults to targetId if not set alignId: The alignment benchmark for the calendar box, which defaults to targetId if not set hms: when a vehicle is open, the default value is’ on said when opening minutes 10:00:00 (2014-09-20), ‘off said closing minutes mode (2014-09-20) format: For the date format, the default value is ’-’ (2014-09-20),’/’ means (2014/09/20) min: Minimum time limit, min time format and previous time format keep 1 straight max: Maximum time limit, max time format and previous time format keep 1 straight zIndex: Maximum time limit, calendar box hierarchy, default 9999

If you need to use modularity in the need to rely on the module with the introduction

Such as:

define('mod1',[],function(require, exports, module){
var xvDate = require("xvDate");
})

Download address

This is the end of this article, I hope you enjoy it.