2022年4月14日

使用insertAdjacentHTML插入元素

摘要: var div2 = document.querySelector("#div2"); div2.insertAdjacentHTML("beforebegin","<p>hello world</p>");//在调用元素外部前面添加一个元素 div2.insertAdjacentHTML("aft 阅读全文

posted @ 2022-04-14 14:32 hi-gdl 阅读(38) 评论(0) 推荐(0) 编辑

导航