您好,日期控件输入可由最大值最小值来控制,请参照,http://demo.grapecity.com.cn/wijmo5/learningwijmo/#fZYKp,希望能帮到您。
- onload = function() {
- // create InputDate with a range restriction
- var curr = new Date(),
- firstDay = new Date(curr.setDate(curr.getDate() - curr.getDay())),
- lastDay = new Date(curr.setDate(curr.getDate() - curr.getDay() + 6));
- var theInputDate = new wijmo.input.InputDate('#theInputDate', {
- format: 'MMM dd, yyyy',
- min: firstDay,
- max: lastDay,
- });
- }
复制代码 |