Vue事件不带参数和带一个参数
<script>
export default {
data(){
return{
message:0,
put1:'www.96net.com.cn',
}
},
methods:{
dianji(p){
this.message++;
console.log(p);
}
}
}
</script>
<template>
<div>
<div>{{message}}</div>
<div @click="dianji">点击</div>
<div :tit="put1" @click="dianji(put1)">点击</div>
</div>
</template>