首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
通过 window.location 获取url中的信息
通过 window.location 获取url中的信息
it
2023-06-11
72
例: var searchURL = window.location.search;
属性描述
hash从#号 (#) 开始的 URL(锚)host主机名和当前 URL 的端口号hostname当前 URL 的主机名href完整的 URLpathname当前 URL 的路径部分port当前 URL 的端口号protocol当前 URL 的协议search从问号 (?) 开始的 URL(查询部分)
转载请注明原文地址: https://lol.8miu.com/read-5634.html
最新回复
(
0
)