问题:Throttling navigation to prevent the browser from hanging. See https://crbug.com/882238. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection
原因:
我在index.html页面中有这样一段代码,将其注释掉就好了
<script>
$(document).ready(function () {
history.pushState(null, null, document.URL);
$(window).on('popstate', function () {
history.pushState(null, null, document.URL);
});
$(window).on('hashchange', function () {
history.pushState(null, null, document.URL);
});
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
});
</script>
We're sorry but ***** doesn't work properly without JavaScript enabled. Please enable it to continue
主应用的router的mode设置为hash,之前是history