Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged 请问,vue中methods传参,改成

0 votes
2.9k views
1 answer
    先上代码: html: <ul id="app"> <li v-for="item in 20" :class="computedClass(item)" @click="clickIndex = item" >{{item}}</li> </ul> js: data:{ ... 两种方式哪种更好,为什么?或者是说都一样? 对于这种情况有没有更好的解决办法...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
3.4k views
1 answer
    先上代码: html: <ul id="app"> <li v-for="item in 20" :class="computedClass(item)" @click="clickIndex = item" >{{item}}</li> </ul> js: data:{ ... 两种方式哪种更好,为什么?或者是说都一样? 对于这种情况有没有更好的解决办法...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...