我正在尝试将一个日期选择器放在我的页面上,但出现了这个错误。我已经搜索并查找其他关于这个错误的答案,但没有找到任何解决方法。
如果没有适用于Bootstrap部分,它可以工作;但是加上它,我就会得到这个错误。这是什么原因,我该如何解决?
下面是我的
如果没有适用于Bootstrap部分,它可以工作;但是加上它,我就会得到这个错误。这是什么原因,我该如何解决?
下面是我的
index.cshtml
代码:@{
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/Chart")
@Scripts.Render("~/bundles/moment")
<meta charset="utf-8" />
<title>ENOCTA DASHBOARD</title>
<!-- FOR DATEPICKER -->
<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>
<!-- FOR BOOTSTRAP -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>
.js
和.css
文件添加到项目中,还根据此更改了Bundleconfig.css
。但是什么也没有改变。 - kalahari