码迷,mamicode.com
首页 > 其他好文 > 详细

location 结构

时间:2015-07-14 17:37:58      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

JavaScript pathname 属性

location.pathname -- 返回URL的域名后的部分。例如 http://www.dreamdu.com/xhtml/ 返回/xhtml/
  • pathname,中文"路径名称"
  • 引用网址:http://www.dreamdu.com/javascript/location.pathname/

pathname属性语法

location.pathname;

pathname属性图示

技术分享

location 结构

标签:

原文地址:http://www.cnblogs.com/study-tiger/p/4645908.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!