Storing all the array values into single variable and then using that value as css property through javascript

前端 未结 0 1511
无人共我
无人共我 2021-01-26 11:04

Suppose i have this array,

let array = [];

for (let i = 1; i < 101; i++) {
  const element = `${i}px ${i}px #0e96ff`;
  array.push(element);
}
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题