View Full Version : 如何用javascript来调用代理
whtportland
13-09-06, 05:50 PM
把URL设置为代理路径,然后在web上打开这个路径就可以了。
举个例子:
var pathname = (window.location.pathname);
var pathname1=pathname.substring(0,(pathname.lastIndexOf('.nsf')+5));
var pathname2=pathname1+'zdelDoc?openagent';
window.location.replace(pathname2);就是运行zdelDoc这个代理
还有一个办法。+一个隐藏按钮。然后用JS去点击
document.forms[0].botton.click();
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.