代码
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="../img/favicon.ico" type="image/x-icon">
<title>事件的基本使用</title>
<script src="../js/vue.js"></script>
</head>
<body>
<div id="demo"></div>
<script type="text/javascript">
Vue.config.productionTip = false; //阻止vue在启动时生成生产提示
const vm = new Vue({
el: "#demo",
data: {
}
})
</script>
</body>
运行结果