wx.navigateTo跳轉攜帶參數


            toGo(rstProductNO) {
                wx.navigateTo({
                    url: '../projectDetail/projectDetail?id='+ rstProductNO
                });
            }

接收,在另一個頁面的onLoad生命周期函數中

        onLoad(options) {
            this.rstProductNO = options.id
        },

就可以拿到傳遞過來的參數

 

 

2020/9/16 - - - -

小程序跳轉傳遞多個參數

       confirm() {
                uni.navigateTo({
                    url:'B-Schedule?date=' + this.date + '&time=' + this.time
                })
            }

如上代碼,跳轉即可攜帶多個參數,接收同上

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM