📜  使用 JavaScript 获取当前 URL? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:06.640000             🧑  作者: Mango

代码示例3
console.log(window.location.href);

As noted in the comments, the line below works, but it is bugged for Firefox.
document.URL