This commit is contained in:
刘荣 2017-06-08 08:53:00 +08:00
parent b8adf5cf2d
commit 718e773fbc
5 changed files with 33 additions and 39 deletions

View file

@ -0,0 +1,16 @@
<template>
<div>{{ name }}</div>
</template>
<script>
export default {
props: {
name: String
},
created () {
console.log(this.name + ': 被创建');
},
destroyed () {
console.log(this.name + ': 被销毁');
}
}
</script>