js常用方法

location.href 返回完整的 URL

location.search 是从当前URL的?号开始的字符串 (location.search.substr(1))

原文地址:https://www.cnblogs.com/luodan/p/6088380.html