我使用從jQuery UI的文檔這個非常簡單的日期選擇器的代碼,但它並不在我的Mac工作:jQuery的日期選擇器不響應
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<input type="text" id="date-picker" />
<script>
$("#date-picker").datepicker();
</script>
</body>
誰能告訴我,爲什麼它不起作用?提前致謝!
你之前包括jQuery的,你也有兩個引用jQuery的JS,檢查:HTTP:// jsfiddle.net/bwjb02rf/ – 2015-01-27 00:14:26