前陣子去湖南幫忙面試,話說仍是第一次正經面試別人,問題是老早之前就開始想了,在這裏整理一下,答案只是簡要,也不必定徹底正確,若有錯誤,勞煩指點
怎麼也該說個css
*{ margin: 0; padding: 0; }
或者詳細點的https://github.com/ccchangkong/article/issues/5前端
頁面不縮放,雙核瀏覽器chrome核優先巴拉巴拉vue
從W3C或caniuse上查詢巴拉巴拉android
合理的結構,合理使用僞元素巴拉巴拉webpack
https://github.com/ccchangkong/article/issues/6ios
https://github.com/ccchangkong/article/issues/4git
.clearfix {*zoom:1;} .clearfix:after {content: '';display: block;height: 0;overflow: hidden;clear: both;}
高低問題,基線致使的,設置vertical-align
github
在元素寬度設置沒問題的狀況下,意外的寬度不夠,幽靈字符問題,設置父元素font-size:0
web
flex:none | [ flex-grow ] || [ flex-shrink ] || [ flex-basis ] flex-direction: row-reverse
rem佈局,響應式佈局,移動瀏覽器和webview常見問題(ios點擊事件不生效、安卓webview各類權限)面試
$('#test').find('.a').closest('.b').end()
.on()
和.off()
a=a.concat(b); a.push.apply(a,b); a.push(...b);
props
、events
和藉助vuex
params
import('./Foo.vue')
//調用原生代碼暴露的接口 ,appFun(state, { funName, val = null }) { if (state.dev.type == 2) { window.android[funName](val); } else if (state.dev.type == 1) { window.webkit.messageHandlers[funName].postMessage(val); } } // 把函數掛在window對象上來暴露給APP let _this = this; window.setGeolocation = function(params) { _this.setGeolocation(params); };
或者
引用jsbridge
proxyTable
https://github.com/ccchangkong/article/blob/master/vue-cli%E4%BF%AE%E6%94%B9.md
由於要作的工做以切圖爲主,因此js問題問的比較少,針對面試者作過的東西會相對的提些問題,如富文本(標籤轉義)、文件生成、票據打印(pt單位)、地圖開發(座標系、點線面操做)。。
話說我搗鼓過的東西很多啊