1 ios中当元素存在overflow: auto的时候 且position: fixed的时候 里面的元素没法超出所设定的原始范围
2 当滚动的内容有嵌套的时候,里面的内容不须要加滚动属性
3 调用手机相册 相机接口css
<input type="file" accept="image/*" capture="camera" /> // 调用-照相机 <input type="file" accept="video/*" capture=camcorder"> // 调用摄像机 <input type="file" accept="audio/*" capture=microphone"> // 调用录音 <input type="file" accept="image/*" />调用相机 图片或者相册 <input type="file" multiple accept="image/*" />调用相册
for(var i = 0; i < 6; i++) { setTimeout(() => { console.log(i) }, i*100) }
vue在建立一个实例时,是有周期
vue
何时须要用到Vue.nextTick
a.在vue声明周期的created()钩子函数中进行的dom操做必定要放在vue.nextTick()的回调函数中,缘由是created()钩子函数执行的时候dom其实尚未任何选热按,而此时进行dom操做,无异于徒劳,因此必定要将dom操做的代码放在vue.nextTick()
的回调函数中。
而mounted钩子函数,由于已经挂载完dom并渲染完毕,此时进行任何dom操做都没有问题
b.在数据变化后要执行的某个操做,而这个操做须要岁数据变化而改变dom的时候,都应该在vue.nextTick()函数中ios
滑动不畅web
* { -webkit-overflow-scrolling: touch; @include boxSizing; }
<meta name="format-detection" content="telephone=no"> <meta http-equiv="x-rim-auto-match" content="none">