jquery datepicker 日历选择插件

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 日期选择器(Datepicker) - 默认功能</title>
  <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
  <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
  <link rel="stylesheet" href="jqueryui/style.css">
  <script>
  $(function() {
    $( "#datepicker" ).datepicker({
	firstDay:0, // 1 为第一天是星期一,0为第一天是星期天
	showMonthAfterYear:true,	// true 年份在前, flase 年份在后
	dateFormat : 'yy-mm-dd',
	dayNamesMin : ['日', '一', '二', '三', '四', '五', '六'],
	monthNames : ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
	});
  });
  </script>
</head>
<body>
 
<p>日期:<input type="text" id="datepicker"></p>

演示地址:http://runjs.cn/code/tsm12cje

posted @ 2016-10-19 20:38  5811  阅读(139)  评论(0)    收藏  举报