wx.navigateBack跳转到指定页面是否可以携带参数?

小程序 文章 2022-01-17 11:20 812 0 全屏看文

AI助手支持GPT4.0

wx.navigateBack跳转到指定页面是否可以携带参数?Can wx.navigateBack jump to the specified page with parameters?

wx.navigateBack跳转到指定页面是否可以携带参数?
// 注意:调用 navigateTo 跳转时,调用该方法的页面会被加入堆栈,而 redirectTo 方法则不会。见下方示例代码// 此处是A页面wx.navigateTo({  url: 'B?id=1'})// 此处是B页面wx.navigateTo({  url: 'C?id=1'})// 在C页面内 navigateBack,将返回A页面wx.navigateBack({  delta: 2})wx.navigateBack 返回到跳转的页面能否携带参数

//Note: when calling navigateto jump, the page calling this method will be added to the stack, while the redirectto method will not. See the following example code / / here is page a Wx Navigateto ({URL: 'B? Id = 1'}) / / this is the B page Wx Navigateto ({URL: 'C? Id = 1'}) / / navigateback in page C will return to page a Wx navigateBack({ delta: 2})wx. Can the navigateback return to the jump page with parameters

回答:

百炼钢:

不能,

如果返回后想获取数据,可以试试利用 wx.setStorageSync 存储一些数据。

微喵网络:

不能

请正确理解back的意思

xplee:

不能

-EOF-

AI助手支持GPT4.0