我遇到一个问题,我登录网站并尝试查看“文档库”,输入将挂起的用户名和密码。
如果我按下刷新按钮,它将加载。当我在Visual Studios 2013中启动项目并测试它时,我必须知道导致这种情况的原因是什么。它工作正常。
当我检查挂起的元素时,它在控制台“HTML1300导航出现。并在其下面的文件:索引”中说明,然后我点击该索引,它进入调试器选项卡并说无法打开“网址”
控制台中的第二件事就是警告。 HTML 1527:期望DOCTYPE。考虑添加有效的HTML5文档类型:这是该页面的hte代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<head><title>
CMMS - Document Library
</title><link type="text/css" href="/Content/themes/redmond/jquery-
ui-1.8.17.custom.css" rel="Stylesheet" />
<script type="text/javascript" src="/Content/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/Content/js/jquery-ui-1.8.17.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="/content/dynatree/ui.dynatree.css" /><link rel="stylesheet" type="text/css" href="/content/site.css" />
<script src="/content/js/jquery.cookie.js" type="text/javascript"></script>
<script src="/content/dynatree/jquery.dynatree.js" type="text/javascript"></script>
<script src="/content/js/jquery.ui.dialog.js" type="text/javascript"></script>
<script src="/content/js/jquery.form.js" type="text/javascript"></script>
<script src="/content/js/jquery.blockUI.js" type="text/javascript"></script>
<script src="/content/js/jquery.sb.js" type="text/javascript"></script>
<script src="/content/js/jquery.ui.accordion.js" type="text/javascript"></script>
<link type="text/css" href="/content/themes/redmond/jquery.sb.css" rel="Stylesheet" />
<script src="/content/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="/content/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="/content/js/jquery.contextMenu.js" type="text/javascript"></script>
<script src="/content/js/jquery.tapandhold.js" type="text/javascript"></script>
<script type="text/javascript" src="/Content/js/pca.core.js"></script>
<link type="text/css" href="/content/themes/redmond/ui.jqgrid.css" rel="Stylesheet" /><link type="text/css" href="/content/themes/redmond/jquery.contextMenu.css" rel="Stylesheet" />
<script type="text/javascript">
$(function () {
$("button").button();
$(".button").button().click(function (event) {
//event.preventDefault();
});
});
但是按下刷新按钮后一切正常。我不知道为什么。并且在运行项目时在localhost上正常工作