How to add hr after each p? using the cycle for

前端 未结 0 782
北荒
北荒 2020-12-05 14:03
document.querySelectorAll(\'p\').forEach((elem) => {
elem.insertAdjacentHTML(\'afterend\', \'
\'); });

What is Lorem Ipsum?&l

相关标签:
回答
  • 消灭零回复
提交回复
热议问题