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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3c201-43168.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3c201-43168.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?