如何从 Windows Phone WebBrowser 控件获取生成的 HTML?
在你对我大惊小怪之前,我先了解一下 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
研究过 Javascript 吗?
呼叫WP7 中的 JavaScript 函数
应该可以满足您的需求
Had a look into Javascript?
Calling JavaScript Functions in WP7
should do you just fine