1.小程序码带参:

因为  参数不能出现{}符号所以我们在 生成的接口时使用&符号分割参数(1&3)直接传这个参数个 {scene:“1&3”}

onLoad:function(options){  if(options.scene){    let scene=decodeURIComponent(options.scene);    //&是我们定义的参数链接方式    let userId=options.scene.split("&")[0];    let recommendId=options.scene.split('&')[1];    //其他逻辑处理。。。。。  }}

TAG标签: 微信小程序小程序码怎么生成

http://www.xiaochengxub.com/read-103381.html