<template>
<div class="mainPanel page-app">
<div class="jk-box">
<ul>
<li v-for="x in list" ><a id="dangwuzhinan" @click.native="change">{{x.name}}</a></li>
</ul>
</div>
</div>
</template>
<script>
export default {
name:"app",
data () {
return {
list:[
{name:"3333333333333"},
{name:"2222222222"},
{name:"11111111"}
],
}
},
methods:{
change: function() {
console.log("aaa")
}
}
}
求指点...也不报错
可以参考这个=》答案