jqury-ui 日期控件中文化

<!doctype html>
<html lang="en">
  <script>
      $(function() {
    $("#datepicker").datepicker({ 
        /* 区域化周名为中文 */ 
        dayNamesMin : ["日", "一", "二", "三", "四", "五", "六"],   
        /* 每周从周一开始 */ 
     
        /* 区域化月名为中文习惯 */ 
				monthNamesShort: ["1月", "2月", "3月", "4月", "5月", "6月", 
                    "7月", "8月", "9月", "10月", "11月", "12月"], 
        /* 月份显示在年后面 */ 
        showMonthAfterYear : true, 
        /* 年份后缀字符 */ 
				changeMonth: true,
				changeYear: true   
    });  
});
</script>
 
<p>日期:<input type="text" id="datepicker"></p>

效果:

猜你喜欢

转载自blog.csdn.net/betonme/article/details/81099942