我有一个使用InternetExplorer的求职脚本。如何将其更改为Chrome或Microsoft Edge?
var navOpenInNewWindow = 0x1;
var navOpenInNewTab = 0x800;
var navOpenInBackgroundTab = 0x1000;
var intLoop = 0;
var intArrUBound = 0;
var navFlags = navOpenInBackgroundTab;
var arrstrUrl = new Array(1);
var objIE;
intArrUBound = arrstrUrl.length;
arrstrUrl[0] = "https://jobs.saic.com/search/?q=korea";
arrstrUrl[1] = "http://search.lockheedmartinjobs.com/ListJobs/ByCustom/Foreign-Location/Keyword-Korea/Page-1";
objIE = new ActiveXObject("InternetExplorer.Application");
objIE.Navigate2(arrstrUrl[0]);
for (intLoop=1;intLoop<=intArrUBound;intLoop++) {
objIE.Navigate2(arrstrUrl[intLoop], navFlags);
}
objIE.Visible = true;
objIE = null;