Open WangShuXian6 opened 5 years ago
document.addEventListener('touchmove', function (event) { event.preventDefault(); });
需要轻点事件 tab, click <video class="video" preload="auto" :class="{hide:showTip || !showVideo}" webkit-playsinline="true" playsinline="true" x5-playsinline="" x-webkit-airplay="allow" :poster="posterSrc" ref="video" controls
需要轻点事件 tab, click
<video class="video" preload="auto" :class="{hide:showTip || !showVideo}" webkit-playsinline="true" playsinline="true" x5-playsinline="" x-webkit-airplay="allow" :poster="posterSrc" ref="video" controls
this.videEl = this.$refs.video; this.videEl.play();
<input type="text" @blur="blurPop" class="phone" v-model="phoneNumber" maxlength="11">
blurPop(){ document.body.scrollTop = 0; } //兼容所有浏览器设置scrollTop的方法: /** *获取scrollTop的值,兼容所有浏览器 */ function getScrollTop() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; return scrollTop; } /** *设置scrollTop的值,兼容所有浏览器 */ function setScrollTop(scroll_top) { document.documentElement.scrollTop = scroll_top; window.pageYOffset = scroll_top; document.body.scrollTop = scroll_top; }
function isWeixinBrowser(){ return /micromessenger/.test(navigator.userAgent.toLowerCase()) }
微信 bug
禁止微信下拉
视频自动播放
ios input 偏移