生成的二维码上拼接的参数,在onLaunch方法中怎么获取参数呀
急急急~
这样操作。uk是生成码的参数 比如 页面:
path:/pages/index/index
scene: uk=2323
打印getQueryString(‘uk’) 值 就是 2323
重复打开同一页面,参数不同如何解决?
https://developers.weixin.qq.com/miniprogram/dev/api/wx.getLaunchOptionsSync.html
onLaunch: function(options) {
var scene = options.query;
}