💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[toc] ### 1. document.getElementById() 和 document.querySelector()的区别 1. 前者是动态获取元素,当元素被js操作后还能获取 后者是静态获取,js 新增的元素无法获取 2. document.getElementById的性能优于querySelector(),但是querySelector操作dom更便捷 ### 2. Html5新特性 1. 新增了 section, header, footer, article, video 等标签,新增了Input的输入类型,time, week, month, number等 2. canvas 画布功能, js 绘图 3. 元素拖放,新增 draggable 属性 4. geolocation API获取用户的地理信息 5. 新增 localStorage 等存储 6. webSocket 7. css3的动画效果