一部分内容被遮盖
正常的样子
在本机的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();
本文探讨了在使用IIS和VS2008时,页面刷新过程中出现的问题,包括刷新时前一次请求未关闭导致的异常情况。通过分析代码逻辑,提出了可能的原因和解决方案。
241

被折叠的 条评论
为什么被折叠?



