示例4-2-1 只能选择今天以前的日期(包括今天)
<
input
id
=
"d421"
class
=
"Wdate"
type
=
"text"
onfocus
=
"WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'});this.blur()"
/>
示例4-2-2 使用了运算表达式只能选择今天以后的日期(不包括今天)
<
input
id
=
"d422"
class
=
"Wdate"
type
=
"text"
onfocus
=
"WdatePicker({minDate:'%y-%M-#{%d+1}'});this.blur()"
/>
示例4-2-3 只能选择本月的日期1号至本月最后一天
<
input
id
=
"d423"
class
=
"Wdate"
type
=
"text"
onfocus
=
"WdatePicker({minDate:'%y-%M-01',maxDate:'%y-%M-%ld'});this.blur()"
/>
示例4-2-4 只能选择今天7:00:00至明天21:00:00的日期
<
input
id
=
"d424"
class
=
"Wdate"
type
=
"text"
onfocus
=
"WdatePicker({dateFmt:'yyyy-M-d H:mm:ss',minDate:'%y-%M-%d 7:00:00',maxDate:'%y-%M-#{%d+1} 21:00:00'});this.blur()"
/>