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 中有一个表单。当表单完成一个 http 帖子时,我想捕获返回的数据并对其进行处理。是否有事件处理程序来检测 iframe 中的表单何时完成 http 帖子?
如果正在加载新页面(非 AJAX 提交),您可以onload为此目的挂钩 Iframe 的事件。
onload