指令v-on:clcik 使用方法

一、加上prevent,当点击按钮后,页面不会刷新 

<button v-on:click.prevent="post">添加博客</button>

posted @ 2020-08-02 19:10  凯宾斯基  阅读(222)  评论(0编辑  收藏  举报