I traversed like this:
But the browser gave this error:
It says that [index] cannot be found, which is the array index. Why is this?
ringa_lee
The span tag should be written inside the li tag
The variable of v-for can only be used on the child elements of this tag
Have you read the documentation for vue class bindinghttps://cn.vuejs.org/v2/guide...
Don’t use seller.supports[index].type in the loop. Just use item.type directly.
The span tag should be written inside the li tag
The variable of v-for can only be used on the child elements of this tag
Have you read the documentation for vue class binding
https://cn.vuejs.org/v2/guide...
Don’t use seller.supports[index].type in the loop. Just use item.type directly.