Home > Software engineering >  How to teach a great god, vb6.0 by use call web js return string to the right answer! Web test js co
How to teach a great god, vb6.0 by use call web js return string to the right answer! Web test js co

Time:09-16

The function setda (oi, da, qans) {
Var titleo=$(" # qtitle "+ oi);
Var anso=$(" # qcontent "+ oi);
Var anss=$(" input [name='ans "+ oi +"] ");
Var ansAr=qans. Split (", ");
If (da==1) {
Sj_yes titleo. AddClass (" ");
} else {
Sj_no titleo. AddClass (" ");
}
for(var i=0; I$(" input [name='ans "+ oi +"'] [value='" + ansAr [I] + "'] "). The parent (" label "). The addClass (" sj_sysans ");
}
}
Vb call handling code, thank you very much

CodePudding user response:

Use webbrowser open the website, and then navigate2 "javascript: setda (oi, da, qans)", the oi, da, three qans parameters are replaced with the actual value

CodePudding user response:

You can also use:
WebBrowser1. Document. ParentWindow. ExecScript "setda (' 0 ', '1', '2')"

The parameters above 0, can be replaced with what you need,
  • Related