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.frames[framename].location.href
..只发现萤火虫报告window.frames[framename].location为空,为什么会这样?
window.frames[framename].location
框架是否在另一个域中?您可能会发现自己受到限制,因为您无法访问其他域的内容(例如 XSS)