🪴qql1's digital garden

Home

❯

笔记

❯

计算机知识

❯

app应用

❯

webAPP

❯

前端

❯

Vue

❯

vue router

❯

路由匹配规则

路由匹配规则

2026年1月26日1分钟阅读

  • 文件-文档-txt文件-笔记
  • (电脑-PC-桌面端-计算机)应用-软件-程序-app
  • 网站-网页端-web端-web应用-webAPP
  • review/前端/基础/Vue

Vue

  • father::Vue router
  1. Routes’ Matching Syntax | Vue Router

实例

const routes = [
  // /:orderId -> matches only numbers
  { path: '/:orderId(\\d+)' },
  // /:productName -> matches anything else
  { path: '/:productName' },
]

关系图谱

反向链接

  • 将路由与组件绑定

Created with Quartz v4.5.2 © 2026

  • GitHub
  • Discord Community