通过普通链接二维码打开小程序,如何在小程序指向页面获取二维码中的动态传参?

小程序 文章 2022-04-11 20:40 393 0 全屏看文

AI助手支持GPT4.0

通过普通链接二维码打开小程序,如何在小程序指向页面获取二维码中的动态传参?Open the applet through the ordinary link QR code, how to get the dynamic parameters in the QR code from the page pointed to by the applet?

通过普通链接二维码打开小程序,如何在小程序指向页面获取二维码中的动态传参?

通过普通链接二维码打开小程序,如何在小程序指向页面获取二维码中的动态传参。

Open the applet through the ordinary link QR code. How to obtain the dynamic transmission parameters in the QR code when the applet points to the page.

回答:

Evan:

我也有这个问题

小黎:

Y:这样貌似拿不到
Y:我之前像你这样拿,没拿到。然后我还尝试了下面这种方法。还是没拿到。
拾忆:

在页面的onLoad生命周期里获取

Y:麻烦大佬给个代码截图呗

-EOF-

AI助手支持GPT4.0