Wechat scan code into the small program parameter transfer problem

  1. Only the first line can be swept into the small program, can not generate beta small program code
  2. Scene =tableId%3DTABLE21031

Actual data reference

1, the actual generated TWO-DIMENSIONAL code value: tableId=TABLE21031 (through his generated two-dimensional code)

2, wechat development tool simulation parameter value: scene=tableId%3DTABLE21031

{scene: “tableId%3DTABLE21031”}

4, finally can get: 3DTABLE21031

Var scene = decodeURIComponent(query.scene); var tableId = scene.split("=")[1];Copy the code