当前位置:网站首页>Processing method for uniapp or applet onload not receiving parameters

Processing method for uniapp or applet onload not receiving parameters

2022-06-25 19:41:00 Bin daotianxia

uniapp Or applet onLoad Processing method of parameter not received

onLoad(options) {

console.log('options',options);

}

Print like this options, Display is undefined Or empty .

Unable to connect to the previous interface or scan the QR code to enter the parameters .

It can be used

onLoad(options) {

var pages = getCurrentPages();
var page = pages[pages.length - 1];
const opt = decodeURIComponent(page.options);

console.log('opt',opt);

}

So there is options The parameters of .

原网站

版权声明
本文为[Bin daotianxia]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202190518210441.html