location.search的使用方法

location.href="dictionary_queryDic.action"+ location.search;//我这样使用

 

比如这么一个URL

http://www.kx91.com/Photo/List.asp?ClassID=1

你用 location.search 就取得 ClassID=1 的部分,简之而言。。

取得 QueryString 部分!!

 

search 设置或获取 href 属性中跟在问号后面的部分

 

 

你可能感兴趣的:(asp)