1. My97DatePicker與angular一塊兒使用時改變了可是angular沒法監測到變化解決方式this
<input class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){$(this).trigger('change')}})" type="text" ng-model="mydata" />
2.開始時間小於結束時間,結束時間最大到當前日期,開始時間 與結束時間 相差一個月<input type="text" id="startTime1" onchange="" ng-model="vm.timeStart1" onclick="WdatePicker({onpicked:function(){$(this).trigger('change')},startDate:'%y',dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$DV(\\\'%y-%M-%d\\\',{d:-29})}',maxDate:'#F{$dp.$D(\\\'endTime\\\')||\\\'%y-%M-%d\\\'}'})"class="input-text Wdate " placeholder="請選擇開始日期" readonly><input type="text" id="endTime1" onchange="" ng-model="vm.timeEnd1" onclick="WdatePicker({onpicked:function(){$(this).trigger('change')},startDate:'%y',dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\\\'startTime\\\')||$dp.$DV(\\\'%y-%M-%d\\\',{d:-29})}',maxDate:'null'})"class="input-text Wdate " placeholder="請選擇結束日期" readonly>