当前位置:网站首页>Uni app gets the route URL of the current page
Uni app gets the route URL of the current page
2022-06-29 09:02:00 【S Xiaoxiao s 4D smile】
Use official methods getcurrentpages Get all first Array , Then take the last array , Then go to get the current routing address .
let routes = getCurrentPages(); // Gets the currently opened page routing array
let curRoute = routes[routes.length - 1].route // Get the current page route , That is, the last open page route
console.log(routes);Here are getcurrentpages() Method , Each object is actually the object of the page that has been opened :

边栏推荐
- Is the securities account of qiniu school really safe and reliable?
- “国防七校”之一西工大遭境外网络攻击
- Mqtt second session -- emqx high availability cluster implementation
- uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined
- Enrollment brochure for system integration project management engineer certification in July 2022
- 51 MCU interrupt and timer counter, based on Puzhong technology hc6800-esv2.0
- Unity C # e-learning (12) -- protobuf generation protocol
- 打印服务IP设置方案
- 工厂模式
- 图片格式-webp
猜你喜欢

51单片机中断与定时器计数器,基于普中科技HC6800-ESV2.0

2022 spring summer collection koreano essential reshapes the vitality of fashion

51 MCU interrupt and timer counter, based on Puzhong technology hc6800-esv2.0

laravel 8 实现 订单表按月份水平分表

2022年7月系统集成项目管理工程师认证招生简章

2022年7月产品经理认证招生简章(NPDP)

今天让你知道PMP考试通过率达97%,可信不可信

对比HomeKit、米家,智汀家庭云版有哪些场景化的体验

Leetcode (142) - circular linked list II

The final of the sixth season of 2022 perfect children's model Hefei division came to a successful conclusion
随机推荐
Déclaration de la variable Typescript - - assertion de type
MYSQL行转列例子
搭建开源物联网平台教程
The sixth season of 2022 perfect children's model Qingyuan competition area audition came to a successful conclusion
Is it safe for the top ten securities companies to open accounts? Is it reliable?
Wallpaper applet source code double ended wechat Tiktok applet
La finale de la zone de compétition Hefei de la sixième saison 2022 a été couronnée de succès.
Operating system product key viewing method
Verilog size and +: Using
July 2022 (advanced soft test) information system project manager certification enrollment Brochure
TypeScript 變量聲明 —— 類型斷言
对比HomeKit、米家,智汀家庭云版有哪些场景化的体验
Product manager certification enrollment brochure (NPDP) in July 2022
随心玩玩(三)Mirai框架QQ机器人
Tutorial on building open source Internet of things platform
Let you know today that the passing rate of the PMP Exam is 97%, is it believable
打印服务IP设置方案
CDGA|交通行业做好数字化转型的核心是什么?
npm常用命令
Mqtt second session -- emqx high availability cluster implementation