调试小程序码功能正确姿势

1、后端传参 scene: 'abc';

2、前端对应页面: pages/createGame/createGame

     

async onLoad(options) {
    let {sid,scene} = options; // scene的值是 'abc'
}

3、调试方式。直接通过 微信开发者工具,扫描小程序码调试。

   

 

参照:https://www.likecs.com/show-451455.html

posted @ 2022-04-21 12:12  MvloveYouForever  阅读(204)  评论(0编辑  收藏  举报