开发者工具页面间数据传递正常,但是真机调试时数据传递不过来?

小程序 文章 2022-03-06 10:20 228 0 全屏看文

AI助手支持GPT4.0

开发者工具页面间数据传递正常,但是真机调试时数据传递不过来?The data transfer between developer tool pages is normal, but the data cannot be transferred during real machine debugging?

开发者工具页面间数据传递正常,但是真机调试时数据传递不过来?

开发者工具编译时都是正常的,数据都可以传递;真机时,显示startdate,enddate是undifined。。。。。

The developer tools are compiled normally and the data can be transferred; When the machine is real, start date is displayed, and end date is unknown.....

回答:

社区技术运营专员-CJiang:

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

brave:console.log 放到 setData 回调里或者后面(接收data里)
尚达:嗯,是的   但是这是什么原因呢?为什么开发者工具没有异步的问题,真机调试的时候就有了呢
尚达:而且await  是我用的不对吗?
尚达:

这个pc端真机调试也是正常的,难道是我该换手机了吗?

-EOF-

AI助手支持GPT4.0