h5封裝小程序的問題,請問分享的path 如何獲取當前的頁面url?
Page({ onShareAppMessage: function (res) {
if (res.from === 'button') {
// 來自頁面內(nèi)轉發(fā)按鈕
console.log(res.target)
}
return { title: '自定義轉發(fā)標題',
path: '/page/user?id=123'
}
}
})