<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="vue2.0.js"></script>
</head>
<body>
<div id="box">
<input type="button" value="按钮" id="in1" @click="show($event)">
<p>{{msg}}</p>
</div>
</body>
<script>
new Vue({
el:"#box",
data:{msg:1},
methods:{
show($event){
alert($event.target.value)
}
}
})
</script>
</html>
使用$evevt代替e=e||window.event;