1. 程式人生 > >jQuery的時間datetime控件在AngularJs中使用實例

jQuery的時間datetime控件在AngularJs中使用實例

pick pic pla ng- start time tex 方式 angular

百度一下,自己也想了一下,有一種簡單,無腦的方式分享給你:

  <input ng-model="start" id="start" placeholder="開始日期" style="width:156px;" class="form-control date-picker" data-date-format="yyyy-mm-dd" type="text">

使用綁定拿不到,但是angular可以兼容jquery,為何不這樣去拿:$("#start").val(),節約時間,快.  

jQuery的時間datetime控件在AngularJs中使用實例