c# webbrowser 如何调用一个js文件里的js方法

DataBox-MDX DataBox-MDX 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
现在有一个网页用webbrowser加载进来,网页html中有一个js文件:
<script type="text/javascript" src="http://...js/modules/myorder.js?_=2.89">
(貌似这个js文件用view source是看不到的,但是用firebug可以看到)
上面一个js文件里有一个方法定义mysubmitAll定义如下:

myGH.myrun(function () {
var myOrder = {
mysubmitAll: function () {
var that = this;
var otherFormDv = $("#otherFormDv");
otherFormDv.append($("#extParamForm").contents());
otherFormDv.append($("#patientInfo").contents().not(":disabled"));
otherFormDv.append($("#reservationReason").contents().not(":disabled"));
that.form.submit()
}
};
},
[GH.modules.autocomplete, GH.modules.datepicker, GH.modules.swfupload, GH.modules.tooltip]);

请问我如何在c# webbrowser中如何用代码动态触发这个mysubmitAll方法?能提供一个完整的语句最好
注:别灌水,有效的解决方案将独自得到80分!!
...全文
评论 7
收藏 已收藏
分享
返回顶部
DataBox-MDX
C# 111,129 成员 642,540 内容