【发布时间】:2015-05-27 09:20:39
【问题描述】:
我第一次尝试使用 jquery,但我无法让它工作。
我的代码如下:
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Display inline</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>
<script src="@Url.Content("~/Scripts/datepicker/jquery.ui.datepicker.js")" type="text/javascript"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<body>
Date: <div id="datepicker"></div>
</body>
</html>
【问题讨论】:
-
尝试使用浏览器控制台查找错误。通过 http: 在脚本标签中检查 code.jquery.com/jquery-1.10.2.js code.jquery.com/ui/1.11.4/jquery-ui.js
-
你到底想要什么?
标签: jquery datepicker