how to get an element of an array in JavaScript dynamically by a specific data-id?

前端 未结 0 958
说谎
说谎 2021-02-01 03:55

I have an array of created list items in my html document with JavaScript. and now, I want to get the elements of this array dynamically by a created attribute like data-id. and

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