<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>111</title>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
<button @click='click'>按钮</button>
</div>
<script>
new Vue({
el: '#app',
data: {
message: '33'
},
mounted(){
console.log(111);
},
created(){
console.log(222);
},
methods:{
click(){
console.log(333);
}
}
})
</script>
</body>
</html>