最近我发现我的应用程序在 Google Chrome 中行为不端。
在带有表单的页面上,提交后,我的应用程序使用如下简单方法重新加载页面:
header('Location: ' . $url);
之后,页面渲染不正确,并将此内容注入 DOM
<div id="sbi_camera_button" class="sbi_search" style="left: 0px; top: 0px; position: absolute; width: 29px; height: 27px; border: none; margin: 0px; padding: 0px; z-index: 2147483647; display: none; "></div>
手动页面刷新后,一切都按预期工作。
我不确定是什么导致了这种行为,因为我在封闭的本地环境中工作并且应用程序在 Firefox 中运行良好。
我的应用程序使用以下库(本地托管):
- jQuery v1.7.1
- jQuery UI 1.8.16
- Bootstrap.js v 2.1.1
有人可以建议我什么可能导致这个问题吗?