jQuery ui 中文日历

<link href="css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jquery-ui-1.10.4.custom.min.js"></script>

 

<script type="text/javascript">
jQuery(function(){
    $( '#liu_d' ).datepicker({
      dateFormat: 'yy-mm-dd'
    });
    $.datepicker.setDefaults( $.datepicker.regional[ "zh-TW" ] );
    
    $.datepicker.regional['zh-TW'] = {
        closeText: '关闭',
        prevText: '&#x3C;上月',
        nextText: '下月&#x3E;',
        currentText: '今天',
        monthNames: ['一月','二月','三月','四月','五月','六月',
        '七月','八月','九月','十月','十一月','十二月'],
        monthNamesShort: ['一月','二月','三月','四月','五月','六月',
        '七月','八月','九月','十月','十一月','十二月'],
        dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
        dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
        dayNamesMin: ['','','','','','',''],
        weekHeader: '',
        dateFormat: 'yy/mm/dd',
        firstDay: 1,
        isRTL: false,
        showMonthAfterYear: true,
        yearSuffix: ''};
    $.datepicker.setDefaults($.datepicker.regional['zh-TW']);
});
</script>

 

相关文章:

  • 2021-08-09
  • 2021-07-22
  • 2022-01-11
  • 2021-11-28
  • 2021-07-23
  • 2021-09-20
  • 2022-01-29
  • 2021-08-14
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-06-09
  • 2021-12-29
  • 2022-12-23
  • 2021-08-08
相关资源
相似解决方案