S
S
slaxik1232020-10-01 14:15:10
Vue.js
slaxik123, 2020-10-01 14:15:10

Vue html collection?

let lol = this.$el.getElementsByClassName(this.cars[i].apps[index].date);
        // eslint-disable-next-line no-console
        console.log(lol);

5f75b9fbe9e23659585944.png
let lol = this.$el.getElementsByClassName(this.cars[i].apps[index].date);
        // eslint-disable-next-line no-console
        console.log(lol[0]);

5f75ba0684e3d704959145.png
let lol = this.$el.getElementsByClassName(this.cars[i].apps[index].date);
        // eslint-disable-next-line no-console
        console.log(lol.item(0));

5f75ba29c5a07470437727.png

Please explain why so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
drawnofmymind, 2020-10-01
@drawnofmymind

It's not an array!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question