我真的不明白这个铬错误:未捕获的SecurityError:未能执行“历史记录”“replaceState:不能与起源“空”的文档中创建
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': cannot be created in a document with origin 'null'
在边缘,Firefox和IE没有错误。
我使用jquery 1.11.1和jquery mobile 1.4.5。
这是我的索引文件:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/xy.min.css" />
<link rel="stylesheet" href="css/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="css/jquery.mobile.structure-1.4.5.min.css" />
<title></title>
</head>
<body>
<div data-role="page">
<div data-role="header" data-add-back-btn="true">
<p align="center">Test</p>
</div>
<ul data-role="listview" data-filter="true" data-filter-placeholder="Kategorie suchen" data-inset="true" data-count-theme="b">
<li><a href="assets/beck/index.html" data-rel"dialog" rel ="external">Bäckereien </a></li>
</ul>
</div>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery.mobile-1.4.5.min.js"></script>
</body>
</html>
任何帮助,非常感谢!
没有你的Javascript代码,我们将无法帮助你太多... – D4V1D
@ D4V1D我没有改变jquery,我只是加载它。 – olivier
你是否运行网络服务器(本地或不是)? –