firefox在引入vue.js后不支持e=e||window.event的解决办法

<!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;

原文地址:https://www.cnblogs.com/qdcnbj/p/8143482.html