there is no effect after clicking, and the console does not respond
Code section:
change(item) {
console.log(item);
}
there is no effect after clicking, and the console does not respond
Code section:
change(item) {
console.log(item);
}
did you write this method in the component? life a click event in the page that references the component. Pass the parameter in the component with this.$emit or directly in the page with @ click.native
<li v-for="(item,n) in lists" :key="n" @click="change(item.url)"> {{item.name}}`</li>
how do you use. ()?
try this
@ click.native= "change (i.url)"
Previous: Mini Program's tabBar font automatically shrinks and does not center vertically.
Next: Why better-scroll can't scroll with the mouse, it can only be dragged. Embarrassed.