当前位置:网站首页>router---Programmatic navigation
router---Programmatic navigation
2022-08-04 13:02:00 【monstkl】
One, programmatic navigation and declarative navigation
Declarative: Programmatically: router.push('') Second, the method of programmatic navigation
1, push to navigate to different locations2. replace3. The parameter of go(n) is an integer, which can be positive or negativeThe navigation method will return a promise to tell if the navigation was successfulThree, the parameters of the programmatic navigation method (push, replace): string | object
1, stringrouter.push('/detail')2. Object (path is provided, params will be ignored)router.push({path: '/detail'})router.push({path: '/detail', query:{}})router.push({name: 'detail', params:{}}) // The name here corresponds to the name in the routing configuration, case sensitiveFourth, accept the parameters passed when navigating in the component
route.query.xxroute.params.xx5. The params parameter will not be displayed in the address bar unless the path parameter is configured in the route
边栏推荐
- String is a reference type
- 牛客网刷题记录 || 链表
- MySQL性能指标TPS\QPS\IOPS如何压测?
- COMSOL空气反应 模型框架
- A comprehensive understanding of MOS tubes, an article is enough
- 【PHP实现微信公众平台开发—基础篇】第2章 微信公众账号及申请流程详解
- Ultra-QuickSort
- ShanDong Multi-University Training #4 A、B、C、G
- Script to get local IP address
- Focus!2022 interview must brush 461 interview questions summary + interview + resume template
猜你喜欢

Programmer Qixi Gift - How to quickly build an exclusive chat room for your girlfriend in 30 minutes

《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架

双目立体视觉笔记(三)三角测量、极线校正

Arduino框架下I2S控制ADC采样以及PWM输出示例解析

罗振宇的A股梦,咋这么难圆?

Cool and efficient data visualization big screen, it's really not that difficult to do!丨Geek Planet

RK1126编译gdb 板子上gdb调试程序

《独行月球》猛药,治不了开心麻花内耗

Diffusion Models:生成扩散模型

判断密码是否包含键盘连续字母
随机推荐
他是“中台”之父,凭一个概念为阿里狂赚百亿
【黑马早报】尚乘数科上市13天,市值超阿里;北大终止陈春花聘用合同;新东方花近200亿退学费和遣散费;张小泉75%产品贴牌代工...
情人节浪漫3D照片墙【附源码】
大神们都在用的神器,你和大神只差一个它!!
Focus!2022 interview must brush 461 interview questions summary + interview + resume template
A Collection of Flutter Tutorials (2022 Edition)
新SCADA 系统:集成边缘计算、MQTT 和云平台
“蔚来杯“2022牛客暑期多校训练营4 N
新 Nsight Graph、Nsight Aftermath 版本中的性能提升和增强功能
为什么密码云服务平台是云时代的必然之选?
Ultra-QuickSort
【牛客刷题-SQL大厂面试真题】NO5.某宝店铺分析(电商模式)
备份控制文件
Systemui qsSetting添加新图标
Cache character stream
牛客网刷题记录 || 链表
Django使用腾讯云发送短信并存入redis
年轻人为什么不喜欢买蒙牛、伊利了?
论文翻译:2022_Time-Frequency Attention for Monaural Speech Enhancement
七夕疯狂搞钱的年轻人,一周赚14万