• iframe


    给iframe的src设值,使之做页面跳转, chrome、ff都没问题,ie下却不行。

     

    于是,想当然的认为是浏览器的问题

    后面发现是他们eview的A元素的空跳转引起的。

    a href=""  ———— 就是这个原因!

    点击,导致跳转当前目录的url,  而这个是不能访问的。 所以出现404.。

    这样就可以了: href="javascript:void(0)"

    设置src跳转没问题,但是之后A的空跳转则引起问题:

    URL 方法 结果 类型 已接收 已花费 发起程序 等候‎‎ 开始‎‎ 请求‎‎ 响应‎‎ 已读取缓存‎‎ 差距‎‎
    /connect.action?_=1401532040764&isAfterLoginConnect=true&isActived=true GET 200 text/plain 266 B 16 ms JS 库 XMLHttpRequest 0 0 16 0 0 6938
    /sysmgrevent/oms.event.get.action?lastTime=145262409&eventIds%5B%5D=oms.web.core.user.permission.change_93618403-27aa-4ed6-a570-3c781caca014&eventIds%5B%5D=oms.web.core.user.has.logout_93618403-27aa-4ed6-a570-3c781caca014&eventIds%5B%5D=oms.web.core.user.has.been.kicked.off_93618403-27aa-4ed6-a570-3c781caca014&_=1401532041768 GET 200 179 B 16 ms JS 库 XMLHttpRequest 1000 0 16 0 0 5938

    第一个

    键 值
    请求 GET /sysmonitorneserver/sysmonitor/processTab.html HTTP/1.1
    Accept image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Referer https://10.74.169.50:31945/sysmonitorneserver/sysmonitor/serverInfo_body.html
    Accept-Language zh-CN
    User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; aff-kingsoft-ciba; .NET4.0C; .NET4.0E)
    Accept-Encoding gzip, deflate
    Host 10.74.169.50:31945

    响应

    请求正文为 空

    键 值
    响应 HTTP/1.1 304 Not Modified
    Content-Type text/html
    Content-Length 4598
    Expires Sat, 07 Jun 2014 08:27:47 GMT
    Last-Modified Fri, 30 May 2014 04:10:13 GMT

    响应正文为 html

    第二个

    请求头:

    键 值
    请求 GET /sysmonitorneserver/sysmonitor/ HTTP/1.1
    Accept image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Referer https://10.74.169.50:31945/sysmonitorneserver/sysmonitor/serverInfo_body.html
    Accept-Language zh-CN
    User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; aff-kingsoft-ciba; .NET4.0C; .NET4.0E)
    Accept-Encoding gzip, deflate
    Host 10.74.169.50:31945
    DNT 1
    Connection Keep-Alive
    Cookie SYSMGR_SESSIONID=1sogvemeq3fvcn2mger01r24u; SYSMGR_SESSIONID=122yzkehxdhuqdl4n9cmkl8xk; SYSMGR_SESSIONID=122yzkehxdhuqdl4n9cmkl8xk

    响应头:

    键 值

    响应 HTTP/1.1 302 Found   ---------  这个302表示跳转, 本来应该是返回404的,但是后台进行了处理。
    SET-COOKIE SYSMGR_SESSIONID=1sogvemeq3fvcn2mger01r24u;Path=/sysmonitorneserver;Secure;HttpOnly
    Location https://10.74.169.50:31945/portal/error.html?error=404
    Content-Length 0

    请求正文、响应正文 全都为空。

    可见正是这个原因导致。

  • 相关阅读:
    Vue介绍
    【Ribbon篇四】自定义负载均衡策略(4)
    【Eureka篇三】Eureka比Zookeeper好在哪里?(8)
    【Ribbon篇四】Ribbon核心组件IRule(3)
    【Eureka篇三】Eureka常用配置说明(7)
    【Eureka篇三】Eureka如何管理服务调用(6)
    【Ribbon篇四】Ribbon初步配置(2)
    【Ribbon篇四】Ribbon介绍(1)
    【Eureka篇三】Eureka集群配置(5)
    【Eureka篇三】Eureka服务发现(4)
  • 原文地址:https://www.cnblogs.com/FlyAway2013/p/3762600.html
Copyright © 2020-2023  润新知