摘要: location.pathname: 返回URL的域名(域名IP)后的部分。例如http://www.joymood.cn/wordpress/返回/wordpress/http://127.0.0.1/index.html 返回/index.html注意是带url的域名或域名IP,在磁盘上随便建个Html文件进行location.pathname测试,如浏览器上的路径是:C:\Documents and Settings\Administrator\桌面\testjs.html, 这样,得到的结果是: /C:\Documents and Settings\Administrator\桌面\t 阅读全文
posted @ 2012-10-08 09:17 Grumoon 阅读(203) 评论(0) 推荐(0) 编辑