location属性
<body>
<!-- 网址组成:https://uniapp.dcloud.net.cn/ -->
<!-- 协议 (http https) + 主机 (域名 ip(公网ip 局域网ip ) ) + 端口号 +路径 + ?参数-->
<!-- http://127.0.0.1:5500/JavaScriptAPI/day03/5-BOM.html -->
<!-- https://www.baidu.com/s?ie=UTF-8&wd=%E5%93%88%E5%93%88 -->
</body>
/*
BOM:
属性:console location history navigator
console(打印) location(有属性:href=’‘) history (.back()方法 .forword()方法)
navigator(l浏览器的嗅探)
方法:alert() prompt() confirm()
alert() 弹窗显示 prompt()弹窗输入
confirm()弹窗确认 确定是 ture 取消是false
事件:onload() onscroll()
window的方法 onload() 刷新+js外部书写时先解析js onscroll()浏览器滚动
*/
```