回到顶部

javascript获取网址参数

 

通过以上图片,就可以很好的理解:

location.href

location.protocol

location.host

location.hostname

location.port

location.pathname

location.search

location.hash

 

是不是很简单  :) <完>

posted @ 2013-11-19 14:18  telang  阅读(453)  评论(0)    收藏  举报