
移动端
文章平均质量分 78
木木芳草
这个作者很懒,什么都没留下…
展开
-
vue下直接用format方法(解决ios时new Date(“yyyy-MM-dd”)问题)
在main.js中Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day "h+": this.getHours(), //hour "m+": this.getMinutes(), //minute "s+": this.getSeconds(), //second "q+":原创 2020-10-26 17:50:23 · 3642 阅读 · 0 评论 -
vux的轮播图
<div class="first-header-class"> <swiper height="150px" dots-position="center" :loop="true" :auto="true" :show-dots="false"> <swiper-item v-for="(item,index) in swiperList" :key="index" > <img :src=.原创 2020-10-26 16:02:50 · 465 阅读 · 0 评论 -
el-select在ios中需要双击才会选中的解决方法
:popper-append-to-body="false"是解决andriod手机option位置靠右<el-select v-model="baseList.post" placeholder="请选择职务" size="large" class="select-class" @blur="blur($event,'post','postError')" :class="{'select-error-class':postError}"原创 2020-10-23 17:24:53 · 1122 阅读 · 0 评论 -
textarea去掉滚动条
<el-input type="textarea" autosize class="modify-ui" readonly ref='userInfo' v-model="noticeList"> </el-input>mounted方法中: this.$nextTick(() => {//滚动条显示问题原创 2020-09-30 16:18:08 · 3697 阅读 · 0 评论 -
ios控制input只能输入数字,连续切换英文输入法会呈现删除状态
限制input只能输入数字:问题:用ios自带的原生键盘2.在输入时选择9宫格的键盘输入连续的点击按键会删除原来的数字解决方法:在input中加pattern="[0-9]"ios下直接调用数字键盘/原创 2020-09-30 16:03:40 · 720 阅读 · 0 评论 -
ios手机中输入框直接切换时,闪屏导致input被遮挡
当页面多个输入框,直接从一个输入框点击另一个输入框时,页面会闪动,且input会被键盘遮挡。解决方案var isIos=this.isIos();if(isIos){FastClick.attach(document.getElementById(“appointment”));//取消苹果手机延迟click事件document.body.addEventListener(‘focusin’, (event) => {this.KaTeX parse error: Expected 'EO原创 2020-09-30 15:58:56 · 628 阅读 · 0 评论 -
FastClick(解决ios中click的延迟300s问题)
解决了input中的清空按钮失效(由于键盘弹起导致的按钮失效)1.npm install fastclick2. import FastClick from ‘fastclick’3. 在页面中引用1用在body上:FastClick.attach(document.body)2.用在某个元素上 FastClick.attach(document.getElementById(“appointment”));//取消苹果手机延迟click事件fastClick会导致隐藏的input的点原创 2020-09-30 15:53:57 · 300 阅读 · 0 评论 -
移动端可移动小图标(vue版)
移动端可移动小图标(vue版)新建vue(backFirst)<template> <div class="back-first-page"> <div class="img-box" @click="backFirstClick" @touchmove="touchmoveClick" :style="{'lef...原创 2020-04-27 16:45:14 · 1411 阅读 · 0 评论