BOM常见的几个对象history, navigator, screen, location

mac2025-05-03  12

history:历史模式, 常用属性:forward, go, back

navigator:导航, 属性userAgent, 查看浏览器的信息, platform 查看平台信息, product, 查看浏览内核

screen:屏幕,availWidth, avaliHeight, width, height等

location:位置, 常用有href, pathName, origin, PORT, protocol

最新回复(0)