1.window.location.search
表示URL的查询部分(问号后面的部分)
比如,URL为https://www.example.com/index.html?key1=value1&key2=value2,则window.location.search的值为"?key1=value1&key2=value2"。
2.window.location.origin
常用于获取当前页面的URL的前缀。
输出:https://www.example.com (假设当前页面的URL为https://www.example.com/path/to/page)
3.window.navigator.userAgent.toLowerCase()获取浏览器版本信息
Navigator 对象包含有关浏览器的信息。
userAgent返回当前用户所使用的浏览器。
toLowerCase()转换为小写。