uniapp页面传递接收参数 我是谁我在哪_ 2022-04-21 191 阅读1分钟 uni.$emit('update',{msg:'页面更新'}) uni.$on('update',function(data){ console.log('监听到事件来自 update ,携带参数 msg 为:' + data.msg); }) onUnload() { // 移除监听事件 uni.$off('update'); },