Learning URL: http://sentsin.com/layui/laydate
This date control is based on JavaScript and has a very powerful function.
Less gossip, I did a little exercise:
<!--date control laydate use.
@author iluckysi @since 20150128 URL: Http://sentsin.com/layui/laydate Core method: Laydate (options);
The options is an object that contains the following key: ' Default ' elem: ' #id ',//The element selector for the date to be displayed: ' Click ',//Trigger Event format: ' Yyyy-mm-dd hh:mm:ss ',//date format Istime:false,//Whether to open time select Isclear:true,//Whether show empty istoday:true,//Whether show today Issure:true, whether show confirm festival:true//whether show Festival min : ' 1900-01-01 00:00:00 ',//min. Max: ' 2099-12-31 23:59:59 ',//MAX date start: ' 2014-6-15 23:00:00 ',//start date fixed:false,//fixed zindex:99999999 in the viewable area,//css Z-index choose:function (dates) {}//Select a callback for the good date--> <%@ page language= "java" import= "JAV"
A.util.* "pageencoding=" UTF-8 "%> <% String Path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/"; %> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >