如何从 Windows Phone WebBrowser 控件获取生成的 HTML?

发布于 2024-11-10 10:57:28 字数 252 浏览 5 评论 0原文

在你对我大惊小怪之前,我先了解一下 SaveToString() 方法!问题是它只获取服务器返回的 HTML。如果通过脚本对其进行进一步处理,我看不到获取实际呈现的 HTML 的方法。一个简单的例子是 Tumblr 页面。如果您在手机上查看 SaveToString 源,您将获得一个指向 RSS 提要的最小链接和一些其他标签。尝试在 IE 或 Chrome 中查看源代码,您将看到完整(且长)的 HTML。任何脚本调用都会替换 HTML,并且似乎没有任何其他相关方法。有什么想法或想法吗?

Before you jump all over me, I know about the SaveToString() method! The problem is that it only grabs the server-returned HTML. If it's further processed through script, I don't see a way to get at the actual rendered HTML. An easy example is a Tumblr page. If you view the SaveToString source on the phone you get a minimal link to the RSS feed and few other tags. Try to view the source in IE or Chrome and you'll see the full (and long) HTML. Any scripting call would replace the HTML, and there don't seem to be any other relevant methods. Any thoughts or ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何止钟意 2024-11-17 10:57:29

研究过 Javascript 吗?

呼叫WP7 中的 JavaScript 函数

应该可以满足您的需求

Had a look into Javascript?

Calling JavaScript Functions in WP7

should do you just fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文