[C++] 纯文本查看 复制代码 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="./vue-v2.6.10.js"></script>
</head>
<body>
<div id="app">
{{msg}}
</div>
</body>
<script>
var app = new Vue({
el:'#app',
data:{
msg:"123"
},
beforeMount:function(){
console.log('渲染虚拟DOM之前')
},
beforeCreate:function(){
console.log('事件绑定完了')
},
updated:function(){
console.log('修改数据后虚拟dom重新更新之后')
}
})
</script>
</html>
|