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">