获取WebService地址(VS2003)

function DomainURLGet()
{
 var strPURL = window.document.location.href.replace("http://" + window.document.location.host.replace(":80", "") + "/", "");
 return "http://" + window.document.location.host + "/" + strPURL.substring(0,strPURL.indexOf('/'));
}

function pcwServiceURLGet()
{
 return (DomainURLGet() + "/PublicModule/DataService.asmx/");
}

posted @ 2010-07-05 09:50  荣辱不惊  阅读(158)  评论(0编辑  收藏  举报