阅读背景:

通过循环索引获取数据属性

来源:互联网 

I am trying to loop through a set of elements and get their data-color attribute based on which index they have. However, it tell me that item.data is undefined. What is the proper way to do this?I am trying to loop through a set of elements a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: