平行组件(兄弟组件)通信 mounted 生命周期 $on 立即执行 $emit 快速触发事件 HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>平行组件通信</title> </head> <body> <div id="seg1"