【问题标题】:WebBrowser Fires DocumentCompleted before ajax calls are completedWebBrowser 在 ajax 调用完成之前触发 DocumentCompleted
【发布时间】:2013-04-04 08:44:51
【问题描述】:

WebBrowser 似乎并不关心是否有正在进行的 ajax 调用,它只是在加载主 html 和图像时触发 DocumentCompleted...

那么是否有可能知道包含所有 ajax 调用的页面何时完成?

【问题讨论】:

    标签: c# .net


    【解决方案1】:

    听起来您需要实现异步 ajax 调用。

    How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?

    或者,在成功时,设置标志来告诉您呼叫何时返回。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-30
      • 2013-10-22
      • 2016-11-20
      • 1970-01-01
      • 1970-01-01
      • 2016-12-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多