在script标签内把appVue 设置var
var appVue = new Vue({})
appVue不能跨标签
也就是说不能这样写
<script>
var appVue = new Vue({})
<script/>
<script>
console.log(appVue)
<script/>
上面这个是错的
<script>
var appVue = new Vue({})
console.log(appVue)
<script/>
这个是vue2.js的版本这样写可以 vue3.js是没有的
然后拿到appVue 就可以绑定原生事件
触发appVue.属性 、appVue.方法