答案 0 :(得分:1)
此代码可以帮助您解决问题。
$('input').datepicker({
minDate: 0,
maxDate: '+1w-3D',
beforeShowDay: $.datepicker.noWeekends
});

<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
</head>
<body>
<p>Date:
<input type="text" id="datepicker" />
</p>
</body>
&#13;