<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body>
<div id="app">
<h1>{
{ msg }}</h1>
<hr />
<router-link to="/product/1/haha">商品1</router-link>
<router-link to="/product/2">商品2</router-link>
<router-link to="/product/3">商品3</router-link>
<router-link to="/product/4">商品4</router-link>
<hr />
<router-view></router-view>
</div>
<script src="vue.js"></script>
&
$route详解
最新推荐文章于 2024-07-13 00:00:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)