1. 订阅事件 (H5)
使用 'on' 订阅 'native-to-h5'
使用 'once' 订阅 'native-to-h5'
2. 触发事件 (H5 -> Native)
使用 'emit' 触发 'h5-to-native'
3. 接收原生事件 (Native -> H5)
点击上方订阅按钮后,将能监听原生端发送的事件
'on' 订阅结果:
'once' 订阅结果: