需求如题。点击开始按钮后,在一个文本框中显示跳转的数字,从1至9,同时开始按钮的文字变为停止,点击停止数字不再跳动,显示当前数字对应的题目内容。另设一个重置按钮,清空当前所选题目。
html部分
<!--显示操作按钮-->
<el-row style=" text-align: left;">
<h2>二、随机抽取题</h2>
<div style="padding-left: 52px;">
<el-button type="primary" style="font-size: 26px; font-weight: bold; " @click="choose()"><i class="el-icon-magic-stick"></i> {
{ btnText}}
</el-button>
<el-button v-if="showResetBtn" type="danger" style="font-size: 26px; font-weight: bold; " @click="reset()"><i class="el-icon-s-home"></i> 重 置
</el-button>
</div>
</el-row>
<!--显示抽题结果-->
<el-row style="margin-top: 1rem;padding-left: 52px;">
<