Iterate over array and use elements as data attributes

前端 未结 0 1329
天涯浪人
天涯浪人 2020-12-05 10:29

How do I loop through an array and add the elements of the array to the data attribute of the spans inside a div?

html

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