Jquery datepicker时间插件并且转中文

从BootCDN导入的外部JQery和datepicker包
<link href="https://cdn.bootcss.com/datepicker/0.5.4/datepicker.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.js">script>
<script src="https://cdn.bootcss.com/datepicker/0.5.4/datepicker.js">script>
<script src="https://cdn.bootcss.com/datepicker/0.5.4/i18n/datepicker.zh-CN.js">script>

JQuery调用插件并转中文
<script>
    $(function () {

        $('#mydate').datepicker({
            language: 'zh-CN',
            autoclose: true,
            todayHighlight: true
        });
        $('#mydate1').datepicker({
            language: 'zh-CN',
            autoclose: true,
            todayHighlight: true
        })

    });
script>
开始时间:<input type="text" name="mydate" id="mydate"/>
结束时间:<input type="text" name="mydate" id="mydate1"/>


 
 

你可能感兴趣的:(jquery)