如何使用js获取url

2025-03-22 05:17:37
推荐回答(2个)
回答(1):

alert(location.href);
这就是具体代码,你还想要怎么具体?

回答(2):

取URL : window.location.href