前阵子去湖南帮忙面试,话说仍是第一次正经面试别人,问题是老早之前就开始想了,在这里整理一下,答案只是简要,也不必定彻底正确,若有错误,劳烦指点
怎么也该说个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单位)、地图开发(坐标系、点线面操做)。。
话说我捣鼓过的东西很多啊