zoukankan      html  css  js  c++  java
  • js页面跳转

    location.href="";

    从当前页面跳转到目标页面相当于a标签的href跳转功能。

    location的

    属性含义
    protocol: 协议 "http:"
    hostname: 服务器的名字 "b.a.com"
    port: 端口 "88"
    pathname: URL中主机名后的部分 "/index.php"
    search: "?"后的部分,又称为查询字符串 "?name=kang&when=2011"
    hash: 返回"#"之后的内容 "#first"
    host: 等于hostname + port "b.a.com:88"
    href: 当前页面的完整URL "http://www.a.com:88/index.php?name=kang&when=2011#first"
  • 相关阅读:
    SHELL[22]
    SHELL[15]
    SHELL[08]
    SHELL[12]
    SHELL[06]
    SHELL[24]
    SHELL[11]
    shell文件合并、去重
    SHELL[25]
    SHELL[14]
  • 原文地址:https://www.cnblogs.com/minshia/p/6791480.html
Copyright © 2011-2022 走看看