Wechat applet routing jump url? The problem of passing parameters is too long

solve one

EventChannel inter-page event communication channel EventChannel | WeChat open document

solve two

Encode and decode characters using encodeURIComponent and decodeURIComponent

encodeURIComponent() function

Function: The string can  be encoded as a URI component. It returns a copy of the URIstring with some characters replaced by hexadecimal escape sequences .

Reference:  Wechat applet routing jump url pass parameter length is too long, resulting in page receiving parameter error eventChannel method solution

Does wx.redirectTo support the use of EventChannel? | WeChat Open Community 

solve three

Local variable globalData, or local cache for resolution

Guess you like

Origin blog.csdn.net/qq_37548296/article/details/130505645