location.search是从当前URL的?号开始的字符串
如:http://www.51js.com/viewthread.php?tid=22720
它的search就是?tid=22720
要获取完整的地址
var url = window.location.search.substring(1,location.search.length);
相关文章:
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2021-11-17
-
2022-12-23
相关资源
-
下载
2023-01-03
-
下载
2023-01-07
-
下载
2023-02-09
-
下载
2021-06-06