JavaScript学习笔记-添加DOM元素
- appenChild
- insertBefore
parentElement.insertBefore(newElement, referenceElement);
- createElement
- setAttribute
试验:
|
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
parentElement.insertBefore(newElement, referenceElement);
试验:
|