<template>
<div class="hello">
<h1>{{ msg }}, your id is {{ id }}</h1>
<p>Debug mode is currently set to {{ debug }}</p>
<a style="cursor: pointer; text-decoration: underline" v-on:click="navigate()">Navigate to Page1</a>
</div>
</template>
在上面的<template> 块中,我们展示debug变量
总结
本文你学到了如何使用 URL 参数和Query参数在 Vue 应用程序中的路由之间传递数据。如果你没有读过我上一篇关于页面导航的文章,你看到的一些东西可能没有多大意义。如果你还没有看过,我建议你去看看
via: https://www.thepolyglotdeveloper.com/2017/11/pass-data-between-routes-vuejs-web-application/
译者:Alex1996a










