事件注册 首先:在组件中 写一个button 然后写一下这个事件的方法: 在主页面中 调用这个事件 打印输出看一下这个事件 是否调用成功 组件代码: <template> <view> <text> { { msg}}</text> <!-- 传参事件 --> <button type="primary" @click=