小程序获取scene值?

发布于 8 年前作者 juanwang16726 次浏览最后编辑 8 年前来自 ask

在开发者工具中设置了指定参数:

这样是可以获取到:let scene = decodeURIComponent(options.scene);  但是如果我传的是id = ozFH15TCrBsmTtWJoXOIUbWuwN5k, 我在生产环境中如何获取?也是 let scene = decodeURIComponent(options.scene);?这样?还是let scene = decodeURIComponent(options.id);

1 回复
itao
itao1 楼6 年前

decodeURIComponent(options.scene)

发表