我想嵌入jQuery UI日期選取器。 我已經得到了代碼從這裏 - https://jqueryui.com/datepicker/似乎無法讓jQuery UI日期選取器正常工作
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$("#datepicker").datepicker();
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>
問題是我無法看到實際的日期選擇器,但只有在輸入框中點擊,甚至超過時。是否有任何額外的步驟,我應該通過,以使其工作或有什麼其他錯誤,我在做什麼?
您是否獲得在控制檯中的一些錯誤只需添加
http://
? – drosam該代碼似乎爲我工作... –