location.search

设置或获取 网页地址跟在问号后面的部分

当以get方式在url中传递了请求参数时,可以利用location的search属性提取参数的值,下面的代码把参数的名称和对应的值存储在2个数组中。

--------------------------------------------------------------


none





请输入




转载于:https://www.cnblogs.com/johnwonder/archive/2011/06/23/2087790.html

你可能感兴趣的:(location.search)