Is there any way to use createElement() in a while loop based on Math.random()?

后端 未结 0 1642
傲寒
傲寒 2020-12-19 14:12

Hello I\'ve been trying to use Math.random() with a while loop, something like this while(i < Math.random) { box = document.createElement(\'DIV\'); doc

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