From 5bb2180108386d839c28994d6172fd8b20a50fb6 Mon Sep 17 00:00:00 2001 From: heavensoft Date: Wed, 6 Jul 2022 13:05:04 +0000 Subject: [PATCH] update docs/api/getEnterOptionsSync.md. --- docs/api/getEnterOptionsSync.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api/getEnterOptionsSync.md b/docs/api/getEnterOptionsSync.md index acfb00a8c..d8709c29a 100644 --- a/docs/api/getEnterOptionsSync.md +++ b/docs/api/getEnterOptionsSync.md @@ -1,6 +1,8 @@ ### uni.getEnterOptionsSync() -获取本次启动时的参数。返回值与App.onLaunch的回调参数一致 +获取本次启动时的参数。如果当前小程序是冷启动,则返回值与 App.onLaunch 的回调参数一致;如果当前是热启动,则返回值与 App.onShow 一致。 + +关于微信小程序冷启动热启动的概念,[详见](https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/operating-mechanism.html) |App|web|微信小程序|支付宝小程序|字节跳动小程序|快手小程序|QQ小程序|百度小程序|京东小程序|钉钉小程序|飞书小程序| |:-|:-|:-|:-|:-|:-|:-|:-|:-|:-|:-| -- GitLab