JS BOM操作(Brower Object Model)

心已入冬 提交于 2020-02-17 14:18:25

1.navigator
2.history
3.screen
4.location

//查看浏览器信息`
let ua=navigator.userAgent ;
//查看屏幕宽度,高度
screen.width
screen.height
//url
location.href
location.protocol
location.host
location.search
location.hash
location.pathname
//前进,后退
history.back()
history.forward()

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!