【发布时间】:2021-07-06 13:10:12
【问题描述】:
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" v-on:click="api">
...
</button>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
...
</div>
我想在单击按钮时在按钮上显示微调器。
当api返回结果时,同时弹出modal和隐藏spinner。
用jQuery实现似乎比较容易,作为vue.js的初学者,写这段代码时不知所措
【问题讨论】:
标签: javascript html css twitter-bootstrap vue.js