一部分内容被遮盖
正常的样子在本机的IIS和VS2008里多次刷新会偶尔出现几次这种情况,外网刷新页面没有出现。(reader每次用完都关闭了),怀疑是不是刷新时前一次尚未关闭,然后新的请求又进来导致的该问题?
///获取网站根目录 IIS里 return (prePath);
function getRootPath() {
var strFullPath = window.document.location.href;
var strPath = window.document.location.pathname;
var pos = strFullPath.indexOf(strPath);
var prePath = strFullPath.substring(0, pos);
var postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);
// if (postPath == "") {
// alert(postPath +"1");
// return (prePath);
// }
// else {
// alert(postPath + "2");
return (prePath);
// }
}
var webpath = getRootPath();
///获取网站根目录 VS里 return (prePath+postPath );
function getRootPath() {
var strFullPath = window.document.location.href;
var strPath = window.document.location.pathname;
var pos = strFullPath.indexOf(strPath);
var prePath = strFullPath.substring(0, pos);
var postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);
// if (postPath == "") {
// alert(postPath +"1");
// return (prePath);
// }
// else {
// alert(postPath + "2");
return (prePath+postPath );
// }
}
var webpath = getRootPath();