ITeye博客

location 介绍

lokvin · 2009-09-11 10:57 · Markdown

location.search=path_from_questionmark location.search 是查询字符串。 eg. http://www.w3schools.com/js/tryit.asp?filename=try_loc_search location.search = ?filename=try_loc_search

location.pathname=path The pathname property sets or returns the path of the current URL. eg. http://www.w3schools.com/js/tryit.asp?filename=try_loc_pathname location.path = js/tryit.asp

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。