摘要: 主要是通过ref <input type="text" class="content" v-model="content" ref="content"/> <span @click="handleClick">使input获得焦点</span> handleClick(label){ this.$r 阅读全文
posted @ 2021-07-03 15:58 前端渣的日常记录 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: <input type="file" name="file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" @change="imgChange(this)" class="fileInput"/> 在图片每次ImgCh 阅读全文
posted @ 2021-07-03 15:52 前端渣的日常记录 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 依赖的库:qrcode.vue (3.2.2) <qrcode-vue :value="qrCodeUrl" :size="size" level="H" /> import QrcodeVue from 'qrcode.vue' export default { name: '', compone 阅读全文
posted @ 2021-07-03 15:49 前端渣的日常记录 阅读(3005) 评论(0) 推荐(0) 编辑