一. 组件的钩子函数(组件生命周期) [生命周期表] <template> <div class="dome"> <h1>组件的钩子函数(生命周期)</h1> <div id="msg">{ { msg }}</div> <button @click="modify">修改</button> </div>