javascript - Problems encountered when traversing arrays with Vue's v-for instruction
ringa_lee
ringa_lee 2017-06-14 10:54:43
0
4
707

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
ringa_lee

ringa_lee

reply all(4)
过去多啦不再A梦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!