window.location.search的作用为:获取页面 URL 地址




































属性 描述
hash 从 # 开始的 URL(锚)
host 主机名和当前 URL 的端口号
hostname 当前 URL 的主机名
href 完整的 URL
pathname 当前 URL 的路径部分
port 当前 URL 的端口号
protocol 当前 URL 的协议
search
从问号 (?) 开始的 URL(查询部分)
赏

YOLO