課程
/前端開發
/HTML/CSS
/入門微信小程序開發
有跳轉指定頁面的完整代碼嗎,小白想參考一下
2020-02-16
源自:入門微信小程序開發 2-2
正在回答
toDetails:?function(e)?{console.log(e);var?index?=?e.currentTarget.dataset.index;console.log(index);var?id?=?e.currentTarget.dataset.id;console.log(id);var?productionInfo?=?e.currentTarget.dataset.item;console.log(productionInfo);wx.showToast({icon:'none',title:?'點擊的標題:'?+?productionInfo.title,});var?productionData?=?JSON.stringify(productionInfo);wx.navigateTo({//問號后面參數定義成什么,接收的時候就得識別這個名稱的變量,例如本鏈接接受處識別為“data”url:?'../details/details?data='+productionData,})},
打印了一些信息,
wx.navigateTo
這個才是關鍵
舉報
帶你入門微信小程序開發,了解微信小程序的基本知識。
2 回答頁面跳轉的問題
1 回答頁面跳轉的問題
1 回答頁面跳轉問題
3 回答面頁跳轉?
2 回答頁面跳轉不行啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-02-21
打印了一些信息,
wx.navigateTo
這個才是關鍵