Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
哪种方法是最佳实践?
window.opener.document.location.href
window.opener.location
至少在 Chrome 中两者都可以正常工作,但我不知道最兼容的是什么。
有什么想法吗?