分享之后携带照片的参数,想要在onload中获取参数后this.setdata失效

小程序 文章 2021-03-04 16:41 391 0 全屏看文

AI助手支持GPT4.0

分享之后携带照片的参数,想要在onload中获取参数后this.setdata失效Carry the parameters of the photo after sharing, and this.setdata becomes invalid after getting the parameters in onload

分享之后携带照片的参数,想要在onload中获取参数后this.setdata失效

分享之后携带照片的参数,想要在onload中获取参数后使用 this.setdata 将图片的地址渲染到页面上,但是并不会将连接中所带的参数渲染到小程序页面上,求解答

Carry the parameters of photos after sharing. You want to get the parameters in onload and use them this.setdata The address of the picture will be rendered to the page, but the parameters in the connection will not be rendered to the page of the applet

回答:

社区技术运营专员-CJiang:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

跨商通:

谢邀。

需要看代码。

Map:

顶一下

-EOF-

AI助手支持GPT4.0