微信扫码进入小程序指定页面,如何测试?

小程序 文章 2021-03-19 17:01 668 0 全屏看文

AI助手支持GPT4.0

微信扫码进入小程序指定页面,如何测试?Scan the code on WeChat to enter the designated page of the mini program, how to test?

微信扫码进入小程序指定页面,如何测试?

参数格式?在onlaunch 获取么,怎么使用开发版本,或者体验版测试?

Parameter format? Can I get it in onlaunch? How can I use the development version or the experience version for testing?

回答:

太初:

开发工具上可以添加编译模式

A-聪:

onlaunch  里获取到页面参数,跳转到对应的页面。

测试在开发者工具里面有:https://developers.weixin.qq.com/miniprogram/dev/devtools/debug.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%96%E8%AF%91

自定义编译里,添加跳转的参数,进行编译测试。

ZZQ:

是的

Samuel.Schnappi:

建议放到app.js的onshow里,热启动时不调用onLaunch

普通编译点开底下有个二维码编译。开发版本在开发工具中这么调试

Samuel.Schnappi:decodeURIComponent(options.query.scene)

-EOF-

AI助手支持GPT4.0