未捕获的安全错误:无法在“历史"上执行“replaceState":无法在原点为“null"的文档中创建 [英] Uncaught SecurityError: Failed to execute 'replaceState' on 'History': cannot be created in a document with origin 'null'
本文介绍了未捕获的安全错误:无法在“历史"上执行“replaceState":无法在原点为“null"的文档中创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我真的没有收到这个 chrome 错误:
<块引用>未捕获的安全错误:无法在历史"上执行replaceState":无法在原点为null"的文档中创建
在 Edge、Firefox 和 IE 中没有错误.
我使用 jquery 1.11.1 和 jquery mobile 1.4.5.
这是我的索引文件:
<头><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>头部><身体><div data-role="页面"><div data-role="header" data-add-back-btn="true"><p align="center">测试</p>
<ul data-role="listview" data-filter="true" data-filter-placeholder="Kategoriesuchen" data-inset="true" data-count-theme="b"><li><a href="assets/beck/index.html" data-rel"dialog" rel ="external">Bäckereien </a></li>
<script src="js/jquery-1.11.1.min.js"></script><script src="js/jquery.mobile-1.4.5.min.js"></script>