js获取当前域名、Url、相对路径和参数以及指定参数

var url = document.location.toString();
原文地址:https://www.cnblogs.com/remember-forget/p/11547153.html