1. 程式人生 > >微信小程式 頁面跳轉如何通過url傳遞引數

微信小程式 頁面跳轉如何通過url傳遞引數

var fb_id = 132

在跳轉地址後

wx.naviga在跳轉地址後teTo({ url: `../free/sellers/sellers?fb_id=${fb_id}`, })

然後在新頁面通過js獲取資料

onLoad: function (options) { console.log(options.fb_id) var fb_id = options.fb_id;}