问题:
在JavaScript中有insertBefore()
,但是如何在不使用jQuery或其他库的情况下在另一个元素之后插入元素?
解决方案:
参考一: https://stackoom.com/question/K72C/如何在不使用库的情况下在JavaScript中的另一个元素之后插入元素参考二: https://oldbug.net/q/K72C/How-to-insert-an-element-after-another-element-in-JavaScript-without-using-a-library
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4355262