EVE | 暴风雨前夕

Lance的博客

  • 首页
  • 标签
  • 分类
  • 归档
  • 搜索
  • 文章目录
  • 站点概览
  1. 1. 添加
  2. 2. 移动
  3. 3. 删除
  4. 4. 兼容性
  5. 5. 参考
Lance

Lance

Front-end developer and iOS developer
332 日志
72 分类
115 标签
GitHub E-Mail
0%

DOM操作-insertAdjacentHTML

发表于 2020-07-24 分类于 前端 / HTML 阅读次数: Changyan:

添加

移动

删除

1
targetElement.remove();

兼容性

1
2
3
4
insertAdjacentElement: IE8+
insertAdjacentText: IE11+
insertAdjacentHTML: IE11+ Chrome80+
remove Edge Chrome80+

参考

  • MDN - insertAdjacentHTML
  • Can i use
DOM
阻止安卓物理返回键事件
CSS骨架屏半自动化
© 2024 Lance
由 Hexo & NexT.Pisces 强力驱动