当前位置:网站首页>1. Summary of wechat applet page Jump methods; 2. the navigateto stack does not jump to the tenth floor
1. Summary of wechat applet page Jump methods; 2. the navigateto stack does not jump to the tenth floor
2022-06-30 21:52:00 【Ding Dong you】
1. Summary of page Jump method of wechat applet

2. navigateTo The stack does not jump to the tenth floor
// encapsulation navigateTo avoid wx.navigateTo The stack does not jump to the tenth floor
function navigateTo(url) {
console.log(" Number of current page stacks ================>", getCurrentPages().length)
if (getCurrentPages().length >= 10) {
wx.redirectTo({
url: url,
success: function (res) {
},
fail: function (res) {
},
complete: function (res) {
},
})
} else {
wx.navigateTo({
url: url,
})
}
}
边栏推荐
猜你喜欢

Reading notes of Clickhouse principle analysis and Application Practice (1)

Pytorch quantitative practice (2)

Ten security measures against unauthorized access attacks

Jupyter notebook/lab switch CONDA environment

京东与腾讯续签三年战略合作协议;起薪涨至26万元,韩国三星SK争相加薪留住半导体人才;Firefox 102 发布|极客头条

Clickhouse Native Monitoring item, System table Description

Introduction and example of template method mode

Usbcan analyzer's supporting can and canfd comprehensive test software lkmaster software solves engineers' can bus test problems

A comprehensive understanding of gout: symptoms, risk factors, pathogenesis and management

周少剑,很少见
随机推荐
Is it safe to open an account for stock trading on mobile phones?
The Jenkins download Plug-in can't be downloaded. Solution
Summary of errors reported when using YML file to migrate CONDA environment
【无标题】第一次参加csdn活动
机器学习适合女生学吗?
Side sleep ha ha ha
1-11 create online file service
Installing jupyter notebook under Anaconda
Akk bacteria - the next generation of beneficial bacteria
ML&DL:机器学习和深度学习中超参数优化的简介、评估指标、过拟合现象、常用的调参优化方法之详细攻略
1-16 路由的概念
FreeRTOS record (IX. an example of a bare metal project transferring to FreeRTOS)
Zaah Sultan looks at the old driver
A group of K inverted linked lists
1-2 install and configure MySQL related software
Pytorch quantitative practice (2)
What does grade evaluation mean? What is included in the workflow?
阿婆做的臭豆腐
1-10 respond to client content according to different URLs
clickhouse原生監控項,系統錶描述