2010reys.com遇到的问题 reader关闭问题 刷新页面有的内容被遮盖 ckeditor获取根目录问题

一部分内容被遮盖 

正常的样子在本机的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();

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值