IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    javascript 中的location.pathname

    grumoon发表于 2014-08-05 10:52:12
    love 0
    location.pathname: 返回URL的域名(域名IP)后的部分。 例如 http://www.joymood.cn/wordpress/返回/wordpress/ http://127.0.0.1/index.html 返回/index.html 注意是带url的域名或域名IP,在磁盘上随便建个Html文件进行location.pathname测试,如浏览器上的路径是:


沪ICP备19023445号-2号
友情链接