我从服务通知进入小程序,然后发现程序没有进入onload和onshow这两个方法?

小程序 文章 2021-02-07 14:01 376 0 全屏看文

AI助手支持GPT4.0

我从服务通知进入小程序,然后发现程序没有进入onload和onshow这两个方法?I entered the applet from the service notification, and then found that the program did not enter the onload and onshow methods?

我从服务通知进入小程序,然后发现程序没有进入onload和onshow这两个方法?

我从服务通知进入小程序,然后发现程序没有进入onload和onshow这两个方法,我想问下各路大神,从服务通知里面进入小程序 他是走的一个什么流程?????

I enter the app from the service notification, and then I find that the app does not enter the onload and Onshow methods. I want to ask the gods, what is the process of entering the app from the service notification?????

回答:

跨商通:

在onLoad里console.log(999)。如果找不到999,你才有资格说它不执行。

都不排查就瞎说结论,

⁽⁽ଘ你管我管你疯啊ଓ⁾⁾:既然提出问题,肯定打印过了,你这说话有点直接
拾忆:

没发现这个问题,页面中的初始化数据很多都是放在onload里的,要是不进入估计早都有人骂街了吧。

⁽⁽ଘ你管我管你疯啊ଓ⁾⁾:我是用体验版测试,那点击服务通知是不是直接进入线上版本了?
拾忆:是的,服务通知只能打开线上版本
不老刘:

一样的吧,你通知里面肯定也是配的小程序url吧,先确认一下你的url配置的是否正确。

⁽⁽ଘ你管我管你疯啊ଓ⁾⁾:能进入对应页面,但是onload中一个方法不调用

-EOF-

AI助手支持GPT4.0