Yiwuku Source code download Web page date and time selection component layDate

Web page date and time selection component layDate

 Web page date and time selection component layDate
14:52:09, January 15, 2018 Yidian Yidi Source code download three thousand two hundred and ninety-one

Resource introduction

LayDate is a date and time selector written in native JavaScript. It does not rely on any third-party library and is compatible with almost all browsers (except IE6/7).

The fully rewritten layDate contains a large number of updates, of which the basic core is five types of selection methods: year selector, month selector, date selector, time selector, and date time selector, and all support range selection (that is, dual controls). Built in strong user-defined date format analysis and legal correction mechanism, including Chinese version and international version, the theme is simple but not ineffective and diverse. Because it is written in native JavaScript with zero dependency, it can also be used as an independent component. Undoubtedly, this is Layui's pious work.

How to use: After obtaining the layDate file package, unzip and store the entire Laydate folder (do not change the structure) in any directory of your project. When using, just import Laydate.js.

Code application example:

 <! DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Use layDate standalone version</title> </head> <body> <input value="2018-01-15" type="text" id="test1"> <script src=" http://res.layui.com/layui/release/laydate/dist/laydate.js "></script><! -- Change to your path --> <script> //Execute a laydate instance laydate.render({ Elem: '# test1'//Specify the element }); </script> </body> </html>

For more parameters and application instructions, go to www.layui.com/doc/modules/laydate.html

 timg (1).jpg

Excellent, really powerful! Well, we must encourage~

Reward two
account number: mxy310@163.com [Copy]
account number: seventy-seven million nine hundred and forty thousand one hundred and forty [Copy]