1. Different from wechat applets, the official TWO-DIMENSIONAL code is deconstructed directly from onLoad options. It is an object, as we all know.

2, ordinary TWO-DIMENSIONAL code

  • It is also deconstructed from options of onLoad. At this time, there should be only one parameter in Options, namely scene, but the parameters in scene are encoded and need to be decoded to get a normal string.

Encoded string

Based on using

tip:

Multiple scenarios can encapsulate common parsing parameter concatenation methods.