详谈js中window.location.search的用法和作用 用该属性获取页面URL地址:window.location对象所包含的属性属性描述hash从井号(#)开始的URL( location.search