从 execScript(IHTMLWindow2) 返回值 [英] Return value from execScript(IHTMLWindow2)

查看:39
本文介绍了从 execScript(IHTMLWindow2) 返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 IHTMLWindow2::execScript 获取返回值的最佳方法是什么?

What is the best way to get the return value from IHTMLWindow2::execScript?

我找到了这个链接,http://social.msdn.microsoft.com/Forums/en/ieextensiondevelopment/thread/712db8ec-0ceb-4efa-afe3-590dc6bbb7bf,这个我没试过,这个方法对吗?

I found this link, http://social.msdn.microsoft.com/Forums/en/ieextensiondevelopment/thread/712db8ec-0ceb-4efa-afe3-590dc6bbb7bf, I haven't tried this, is this the right way?

问候马诺吉

推荐答案

是的,System.Windows.Forms.HtmlDocument.InvokeScript 就是这样获取返回值的.

Yes, that's how System.Windows.Forms.HtmlDocument.InvokeScript gets the return value.

这篇关于从 execScript(IHTMLWindow2) 返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆