微信小游戏获取参数


通过APP唤起微信小游戏,并且接收小游戏参数

console.log("begin")
console.log(wx.getLaunchOptionsSync())
console.log(JSON.stringify(wx.getLaunchOptionsSync()))
wx.showModal({
title: '123213',
content: JSON.stringify(wx.getLaunchOptionsSync().query),
})
console.log("end")
 
https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=21526646437Y6nEC&token=ae4e632e7dcc175a183ce11346e0dfcd98399d82&lang=zh_CN
 
 
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM