差不多就是a标签,id原理
直接上代码
- 要点击跳转的页面
<!-- index.vue -->
<div>
<div @click="about('introduce')">公司简介</div>
<div @click="about('culture')">公司文化</div>
差不多就是a标签,id原理
直接上代码
<!-- index.vue -->
<div>
<div @click="about('introduce')">公司简介</div>
<div @click="about('culture')">公司文化</div>