add
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="example">
|
||||
<my-component title="yjh"></my-component>
|
||||
<my-component v-bind:title="title"></my-component>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
@@ -14,7 +14,12 @@
|
||||
<script>
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#example'
|
||||
el: '#example',
|
||||
data:{
|
||||
title:""
|
||||
},mounted:function(){
|
||||
this.title = 'WWW'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user