JS plug laydate time

Today to share with you a time plug-in, the plug-in is a plug-in I often use before, more powerful, so far found no problems.

The plug-in supports the following points:

1, various combinations of the selected time (year, month, year, month, day, hour, Gregorian Calendar)

2, time interval

3, pop-up display or not

4, time custom format

5, Maximum Minimum

6, etc.

Go to the official website to download the compressed file plugin.

Will be "laydate" after extract the folder, you can simply copy the files to your project.

Then reference where you need

<script type = "text / javascript " src = "laydate / laydate.js"> </ script>
This plugin, other documents he will introduce himself to go, what if the style of their own can not come to manually set the path of what is css possible.

Layout format:

<input type="text" id="test1" placeholder="yyyy-MM-dd">(www.gendan5.com)

JS format:

laydate.render({
elem: '#test1',
type: 'time',
format: 'H点M分'
});

This plug-in API is too strong, I hope you directly view Quguan network.

Guess you like

Origin blog.51cto.com/14513127/2435839