bootstrap 時間控制項,bootstrap控制項

來源:互聯網
上載者:User

bootstrap 時間控制項,bootstrap控制項

        最近使用了bootstrap的UI感覺確實很漂亮,非常值得學習和使用。下面先簡單瞭解下bootstrap的時間控制項。

  這個時間控制項使用起來還是非常的簡單,只需要引入基本的css和js就可以了

  需要引入的css和js:(檔案引入路徑根據自己的項目而定)

<link href="<c:url value='/plugins/bootstrap-datetimepicker/css/datetimepicker.css'/>"rel="stylesheet" type="text/css" /><link href="<c:url value='/plugins/bootstrap/css/bootstrap.min.css'/>" rel="stylesheet" type="text/css"/><script type="text/javascript"src="<c:url value='/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js'/>"></script><script type="text/javascript"src="<c:url value='/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.fr.js'/>"></script><script src="<c:url value='/plugins/bootstrap/js/bootstrap.min.js'/>" type="text/javascript" ></script><script src="<c:url value='/plugins/jquery-1.10.2.min.js'/>" type="text/javascript"></script>

控制項和js的調用:

<input id="startDate" size="16" type="text" >$('#startDate').datetimepicker({format : 'yyyy-mm-dd',weekStart : 1,todayBtn : 1,autoclose : 1,todayHighlight : 1,startView : 2,forceParse : 0,showMeridian : 1,language: 'zh-CN',//漢化minView: "month" //選擇日期後,不會再跳轉去選擇時分秒 });
下面來看看:


   外掛程式:http://download.csdn.net/detail/javaweiming/8140797

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.