Vue cannot add click event

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)"

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35c4a-2bfb2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35c4a-2bfb2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?