国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

angular.js - angular的datepicker怎么限制只能選擇當(dāng)月日期?
為情所困
為情所困 2017-05-15 17:01:03
0
1
810

1、現(xiàn)在有一個(gè)需求,當(dāng)startdate被選后,enddate只能選擇同一個(gè)月的日期,比如 startdate選擇了 2016-04-21 那么enddate只能選擇4月份的內(nèi)容,請(qǐng)問怎么設(shè)置

2、怎么刪掉日歷上的選擇按鈕

為情所困
為情所困

Antworte allen(1)
洪濤
  1. 設(shè)置minDate/maxDate

max-date="endDate" on the startDate input
min-date="startDate" on the endDate input


  1. 修改對(duì)應(yīng)的template

https://github.com/angular-ui/bootstrap/blob/master/template/datepicker/day.html

templateCache key => "uib/template/datepicker/day.html"

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage