Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 349 Bytes

router-link.md

File metadata and controls

19 lines (10 loc) · 349 Bytes

<router-link> 组件支持用户在具有路由功能的应用中(点击)导航。

Props

  • href

    类型: string | Location

    required

    表示目标路由的链接。当被点击后,内部会立刻把 href 的值传到 memory-router.pushState()。

<!-- 字符串 -->
<router-link href="/home">Home</router-link>