摘要: 事件上 事件概述 用户在浏览器上触发一个操作 浏览器上会执行相关的函数进行处理 这个称为事件 示例:用户点击注册按钮 浏览器会完成注册的操作 事件的俩种模式 内联模式 脚本模式 * <!-- 内联的模式 --><button onclick="alert(123)">123</button><!-- 阅读全文
posted @ 2022-06-13 16:51 itxunxun 阅读(89) 评论(0) 推荐(0)
摘要: BOM DOM BOM 概述: BOM 浏览器对象模型,对于路由的底层就是bom 六大对象 window 全局对象 location 地址栏(url)* history 历史页面 * document 文档对象 navigator 导航(获取浏览器对应的信息) screen 屏幕对象 (获取对应的宽 阅读全文
posted @ 2022-06-13 16:50 itxunxun 阅读(60) 评论(0) 推荐(0)