本帖最后由 kimi 于 2014-2-27 16:03 编辑
我的地址脚本里面有这样一段代码:
var selectArray =getParameter("_selects");
var checkSelects = splitText(selectArray,";");
var url;
if(checkSelects != null && checkSelects.length > 0){
var url1 = "http://192.168.2.103:8080/obpm";
url="/portal/share/report/runqianreport/tongyong.jsp?type="+checkSelects[0];
url1=url1+url;
}
url1;
这是我之前写给打印的代码,这段代码在内网都是可以使用的,但是在外网 比如vpn 上就访问不了,
请问我想把地址不要写死,该如何获取当前平台服务地址什么的呢 |