JS: Dynamically build N number of elements

后端 未结 0 605
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 04:41

If I wanted to build n-number of elements, what is the proper way to do that?

let parent = document.getElementById(\'parent\');

[1,2,3,4,5,6,7].forEach(num =         


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