diff --git a/docs/api/router.md b/docs/api/router.md index 5c607489cc9a15034fe5ed53f4526dc7f349a5f9..f9ffc3ca12743bc1121d57a89b52cdff54335562 100644 --- a/docs/api/router.md +++ b/docs/api/router.md @@ -75,6 +75,33 @@ onLoad: function(option) { } ``` +vue3 `script setup` 语法糖中调用 `getOpenerEventChannel` 示例: + +```js + +``` url有长度限制,太长的字符串会传递失败,可改用[窗体通信](https://uniapp.dcloud.io/collocation/frame/communication)、[全局变量](https://ask.dcloud.net.cn/article/35021),另外参数中出现空格等特殊字符时需要对参数进行编码,如下为使用`encodeURIComponent`对参数进行编码的示例。 ```html