今天做项目时,遇到这么一个小问题,关于如何设置截止日期,这个日期一定大于当前日期,正常我们把kind类型设置成datetime,我们最多只能设置当前日期,如果日期想往后设置是做不到的,这是就需要我们在input标签里面添加check= "false",这样就可以设置当前日期之后的日期了。如果check="false"不好用,那么可以把双引号去掉再试一次。
<div class="ume-edit-group form-group col-lg-3 col-md-4 col-sm-6 col-xs-12" xtype="ume-edit-group"> <label class="control-label" id="L4">有效截止时间</label> <div class="input-group"> <input type="text" class="ume-edit form-control" id="EFFECTIVE_TIME" label="L4" name="EFFECTIVE_TIME" kind="datetime" fieldname="EFFECTIVE_TIME" autocomplete="off" maxlength="0" format="%Y年%m月%d日 %H:%M:%S" check= false /> <span class="input-group-addon"/> </div>