課程
/前端開發(fā)
/HTML/CSS
/入門微信小程序開發(fā)
有跳轉(zhuǎn)指定頁面的完整代碼嗎,小白想?yún)⒖家幌?/p>
2020-02-16
源自:入門微信小程序開發(fā) 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:?'點擊的標(biāo)題:'?+?productionInfo.title,});var?productionData?=?JSON.stringify(productionInfo);wx.navigateTo({//問號后面參數(shù)定義成什么,接收的時候就得識別這個名稱的變量,例如本鏈接接受處識別為“data”url:?'../details/details?data='+productionData,})},
打印了一些信息,
wx.navigateTo
這個才是關(guān)鍵
舉報
帶你入門微信小程序開發(fā),了解微信小程序的基本知識。
1 回答頁面跳轉(zhuǎn)的問題
2 回答頁面跳轉(zhuǎn)的問題
1 回答頁面跳轉(zhuǎn)問題
3 回答面頁跳轉(zhuǎn)?
2 回答頁面跳轉(zhuǎn)不行啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2020-02-21
打印了一些信息,
wx.navigateTo
這個才是關(guān)鍵