gpt4 book ai didi

c# - 在 geckofx 中显示 html

转载 作者:行者123 更新时间:2023-12-02 21:56:39 25 4
gpt4 key购买 nike

如何在 GeckoFX 内显示内存中的 HTML 源文件 - 保存在变量中。

我想要做的是使用 WebClient 下载网页并在 GeckoFX 中显示生成的 HTML。

我知道我可以使用 Geckofx.Navigate ...但是 Tor 的代理设置无法正常工作,在我让代理正常工作之前,这将是一种忽悠。

最佳答案

geckofx 21.0-0.2 有一个新方法 GeckoWebBrowser::LoadHtml(string content, string url) 你可以尝试一下。

如果这不能按您想要的方式工作,那么按照 John Hatton 的建议,保存到磁盘上的临时文件。 (请注意,在导航完成之前不要删除文件。Geckofx.Navigate 方法是异步的。)

关于c# - 在 geckofx 中显示 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17666696/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com