用VB封装的一个dll,注册之后,通过JS创建一个ActiveXObject对象,调用这个方法:
public void yh_interface_call(string astr_jybh, string astr_jykz_xml, string astr_jysr_xml, ref object astr_pcbh, ref object astr_jylsh, ref object astr_jyyzm, ref object astr_jysc_xml, ref object aint_appcode, ref object astr_appmsg)
C#可以调用,但是JS不知道怎么调:
string ctrxml = "<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"yes\" ?><control><yab003>"+textBox1.Text+"</yab003></control>"; object outxml=""; object appcode=0; object mesxml=""; myinter.yh_interface_call("04",ctrxml,"","","","",ref outxml,ref appcode,ref mesxml);
请问JS应该怎么调?下面是我自己写的:
var ctrxml="<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"yes\" ?><control><yab003>0090</yab003></control>"; var outxml=""; var appcode=0; var mesxml=""; ver.yh_interface_call("04",ctrxml,"","","","",outxml,appcode,mesxml);
始终觉得参数类型这里不对,希望各位帮我看一下。