标签:bsp eval date label picker end gray ext style
minDate:最小时间
maxDate:最大时间
<input type="hidden" id="minDateVal" value="@ViewBag.beginDate" />
<input id="input_beginDate" type="text" value="@ViewBag.beginDate" class="Wdate" style="width: 120px" onfocus="var input_endDate = $dp.$(‘input_endDate‘); WdatePicker({ onpicked: function () { input_endDate.focus(); }, minDate: ‘#F{$dp.$D(\‘minDateVal\‘)}‘, dateFmt: ‘yyyy-MM-dd‘ });"> -
<input id="input_endDate" type="text" value="@ViewBag.endDate" class="Wdate" style="width: 120px" onfocus="WdatePicker({ onpicked: function () {}, minDate: ‘#F{$dp.$D(\‘input_beginDate\‘,{d:3})}‘, maxDate: ‘#F{$dp.$D(\‘input_beginDate\‘,{d:7})}‘, dateFmt: ‘yyyy-MM-dd‘ });">
<label style="color: gray">曝光时间3-7天</label>
在ViewBag.beginDate 开始时间内限制开始时候为3天后
插件内限制结束时间为开始时间往后的 3-7天
标签:bsp eval date label picker end gray ext style
原文地址:https://www.cnblogs.com/opts/p/11988262.html