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.
我有一个带有一些 javascript 的页面,它应该重定向到一个页面,但让它加载到同一个 iframe 中。window.open 一起加载不同的窗口。我怎样才能做到这一点?
代替
window.open(url)
尝试
window.location = url