标签: javascript dom iframe
所以我有一个由 iframe 组成的页面。
例如:将htp://example.com视为页面,将htp://test.com视为iframe。
htp://example.com
htp://test.com
现在当我在$window.location.reload中htp://test.com时,在加载iframe时,document.referrer本身而不是htp://example.com。
$window.location.reload
document.referrer
首次加载主页时,它可以正常工作。 但仅在重新加载iframe时无效。