把router-link标签渲染成指定的标签

<router-link>标签默认渲染成 <a>标签,可以通过tag属性把router-link渲染成指定的标签,如:

<router-link to="/" tag="li"><span>home</span></router-link>

猜你喜欢

转载自www.cnblogs.com/luguankun/p/10635229.html