The problem of obtaining parameters through options in WeChat Mini Programs onload Life cycle function

for example, the jump button on a page looks like this:

<navigator class="rb-tab-item" url="../webview/webview?url="https://www.irongbei.com/MCommon/about?navCurr=1"">
  
</navigator>

b page print parameters in onload:

onLoad: function (options) {
    console.log(options.url);  // "https://www.irongbei.com/MCommon/about navCurr=1
}

ask the boss how to solve it?


you can escape 'url= "https://www.irongbei.com/MCommon/about?navCurr=1 first. The two? signs have some influence

.
Menu